python312Packages.pynetbox: refactor

This commit is contained in:
natsukium 2024-09-13 11:52:58 +09:00
parent 9059a37d41
commit f5417608ad
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -2,10 +2,10 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
packaging,
requests,
six,
pytestCheckHook,
pyyaml,
}:
@ -13,23 +13,27 @@
buildPythonPackage rec {
pname = "pynetbox";
version = "7.4.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "netbox-community";
repo = pname;
repo = "pynetbox";
rev = "refs/tags/v${version}";
hash = "sha256-JOUgQvOtvXRDM79Sp472OHPh1YEoA82T3R9aZFes8SI=";
};
nativeBuildInputs = [ setuptools-scm ];
build-system = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
dependencies = [
packaging
requests
six
];
pythonImportsCheck = [ "pynetbox" ];
nativeCheckInputs = [
pytestCheckHook
pyyaml