datalad: fix changed hash from upstream (#364015)
[NixPkgs.git] / pkgs / development / python-modules / pyeapi / default.nix
blobbdc03df20b59e4b8aaef070fb33b7221169f683e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   mock,
7   netaddr,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "pyeapi";
14   version = "1.0.4";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "arista-eosplus";
21     repo = "pyeapi";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-eGNBQSnYMC9YVCw5mBRH6XRq139AcqFm6HnO2FUzLEE=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [ netaddr ];
30   nativeCheckInputs = [
31     mock
32     pytestCheckHook
33   ];
35   pytestFlagsArray = [ "test/unit" ];
37   pythonImportsCheck = [ "pyeapi" ];
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   };