Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pynetbox / default.nix
blob0a08f4affa5951a381db125855b031684c64d38f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools-scm
5 , requests
6 , six
7 , pytestCheckHook
8 , pyyaml
9 }:
11 buildPythonPackage rec {
12   pname = "pynetbox";
13   version = "7.3.3";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "netbox-community";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-QIvh24ZqnF8uF9HOuY0yt3QT/jHgJ2C916d+rBqezWQ=";
21   };
23   nativeBuildInputs = [
24     setuptools-scm
25   ];
27   propagatedBuildInputs = [
28     requests
29     six
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34     pyyaml
35   ];
37   disabledTestPaths = [
38     # requires docker for integration test
39     "tests/integration"
40   ];
42   meta = with lib; {
43     changelog = "https://github.com/netbox-community/pynetbox/releases/tag/v${version}";
44     description = "API client library for Netbox";
45     homepage = "https://github.com/netbox-community/pynetbox";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ hexa ];
48   };