depot/third_party/nixpkgs/pkgs/development/python-modules/pyeapi/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
918 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
mock,
netaddr,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyeapi";
version = "1.0.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "arista-eosplus";
repo = "pyeapi";
rev = "refs/tags/v${version}";
hash = "sha256-eGNBQSnYMC9YVCw5mBRH6XRq139AcqFm6HnO2FUzLEE=";
};
build-system = [ setuptools ];
dependencies = [ netaddr ];
nativeCheckInputs = [
mock
pytestCheckHook
];
pytestFlagsArray = [ "test/unit" ];
pythonImportsCheck = [ "pyeapi" ];
meta = with lib; {
description = "Client for Arista eAPI";
homepage = "https://github.com/arista-eosplus/pyeapi";
changelog = "https://github.com/arista-eosplus/pyeapi/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ astro ];
};
}