python312Packages.pynetbox: refactor
This commit is contained in:
parent
9059a37d41
commit
f5417608ad
@ -2,10 +2,10 @@
|
|||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
setuptools,
|
||||||
setuptools-scm,
|
setuptools-scm,
|
||||||
packaging,
|
packaging,
|
||||||
requests,
|
requests,
|
||||||
six,
|
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pyyaml,
|
pyyaml,
|
||||||
}:
|
}:
|
||||||
@ -13,23 +13,27 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pynetbox";
|
pname = "pynetbox";
|
||||||
version = "7.4.0";
|
version = "7.4.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "netbox-community";
|
owner = "netbox-community";
|
||||||
repo = pname;
|
repo = "pynetbox";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-JOUgQvOtvXRDM79Sp472OHPh1YEoA82T3R9aZFes8SI=";
|
hash = "sha256-JOUgQvOtvXRDM79Sp472OHPh1YEoA82T3R9aZFes8SI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
packaging
|
packaging
|
||||||
requests
|
requests
|
||||||
six
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pynetbox" ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pyyaml
|
pyyaml
|
||||||
|
Loading…
Reference in New Issue
Block a user