at master 908 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 mock, 7 netaddr, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "pyeapi"; 14 version = "1.0.4"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "arista-eosplus"; 21 repo = "pyeapi"; 22 tag = "v${version}"; 23 hash = "sha256-eGNBQSnYMC9YVCw5mBRH6XRq139AcqFm6HnO2FUzLEE="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ netaddr ]; 29 30 nativeCheckInputs = [ 31 mock 32 pytestCheckHook 33 ]; 34 35 enabledTestPaths = [ "test/unit" ]; 36 37 pythonImportsCheck = [ "pyeapi" ]; 38 39 meta = with lib; { 40 description = "Client for Arista eAPI"; 41 homepage = "https://github.com/arista-eosplus/pyeapi"; 42 changelog = "https://github.com/arista-eosplus/pyeapi/releases/tag/v${version}"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ astro ]; 45 }; 46}