13 buildPythonPackage rec {
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
21 owner = "arista-eosplus";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-GZBoCoAqij54rZezRDF/ihJDQ5T6FFyDSRXGV3//avQ=";
28 # Replace imp, https://github.com/arista-eosplus/pyeapi/pull/295
30 name = "replace-imp.patch";
31 url = "https://github.com/arista-eosplus/pyeapi/commit/1f2d8e1fa61566082ccb11a1a17e0f3d8a0c89df.patch";
32 hash = "sha256-ONviRU6eUUZ+TTJ4F41ZXqavW7RIi1MBO7s7OsnWknk=";
36 build-system = [ setuptools ];
38 dependencies = [ netaddr ];
45 pytestFlagsArray = [ "test/unit" ];
47 pythonImportsCheck = [ "pyeapi" ];
50 description = "Client for Arista eAPI";
51 homepage = "https://github.com/arista-eosplus/pyeapi";
52 changelog = "https://github.com/arista-eosplus/pyeapi/releases/tag/v${version}";
53 license = licenses.bsd3;
54 maintainers = with maintainers; [ astro ];