depot/third_party/nixpkgs/pkgs/development/python-modules/pynetbox/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
987 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
packaging,
requests,
six,
pytestCheckHook,
pyyaml,
}:
buildPythonPackage rec {
pname = "pynetbox";
version = "7.3.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "netbox-community";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-QIvh24ZqnF8uF9HOuY0yt3QT/jHgJ2C916d+rBqezWQ=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
packaging
requests
six
];
nativeCheckInputs = [
pytestCheckHook
pyyaml
];
disabledTestPaths = [
# requires docker for integration test
"tests/integration"
];
meta = with lib; {
changelog = "https://github.com/netbox-community/pynetbox/releases/tag/v${version}";
description = "API client library for Netbox";
homepage = "https://github.com/netbox-community/pynetbox";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}