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, 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