depot/third_party/nixpkgs/pkgs/development/python-modules/pynetbox/default.nix

52 lines
995 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, requests
, six
, pytestCheckHook
, pyyaml
}:
buildPythonPackage rec {
pname = "pynetbox";
version = "7.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "netbox-community";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-PFSnINbXSnEo1gvntjfH6KCVa/LeaNrsiuWM4H+fOvQ=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
requests
six
];
checkInputs = [
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 ];
};
}