1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 packaging, 7 requests, 8 six, 9 pytestCheckHook, 10 pyyaml, 11}: 12 13buildPythonPackage rec { 14 pname = "pynetbox"; 15 version = "7.3.3"; 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "netbox-community"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-QIvh24ZqnF8uF9HOuY0yt3QT/jHgJ2C916d+rBqezWQ="; 23 }; 24 25 nativeBuildInputs = [ setuptools-scm ]; 26 27 propagatedBuildInputs = [ 28 packaging 29 requests 30 six 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pyyaml 36 ]; 37 38 disabledTestPaths = [ 39 # requires docker for integration test 40 "tests/integration" 41 ]; 42 43 meta = with lib; { 44 changelog = "https://github.com/netbox-community/pynetbox/releases/tag/v${version}"; 45 description = "API client library for Netbox"; 46 homepage = "https://github.com/netbox-community/pynetbox"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ hexa ]; 49 }; 50}