nixpkgs/pkgs/development/python-modules/pyeapi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
828 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonAtLeast
, fetchFromGitHub
, netaddr
, pytestCheckHook
, mock
}:
2022-01-20 17:57:04 +00:00
buildPythonPackage rec {
pname = "pyeapi";
version = "0.8.4";
format = "pyproject";
# https://github.com/arista-eosplus/pyeapi/issues/189
disabled = pythonAtLeast "3.10";
2022-01-20 17:57:04 +00:00
src = fetchFromGitHub {
owner = "arista-eosplus";
repo = pname;
rev = "v${version}";
sha256 = "13chya6wix5jb82k67gr44bjx35gcdwz80nsvpv0gvzs6shn4d7b";
};
propagatedBuildInputs = [ netaddr ];
checkInputs = [
mock
pytestCheckHook
];
pytestFlagsArray = [ "test/unit" ];
pythonImportsCheck = [ "pyeapi" ];
2022-01-20 17:57:04 +00:00
meta = with lib; {
description = "Client for Arista eAPI";
homepage = "https://github.com/arista-eosplus/pyeapi";
license = licenses.bsd3;
maintainers = [ maintainers.astro ];
};
}