at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 setuptools-scm, 7 packaging, 8 requests, 9 pytestCheckHook, 10 pyyaml, 11}: 12 13buildPythonPackage rec { 14 pname = "pynetbox"; 15 version = "7.5.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "netbox-community"; 20 repo = "pynetbox"; 21 tag = "v${version}"; 22 hash = "sha256-gDcTWXGE0GOEmuDSwFgKytCidg8Py1PFMfJCDhuOMoQ="; 23 }; 24 25 build-system = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 dependencies = [ 31 packaging 32 requests 33 ]; 34 35 pythonImportsCheck = [ "pynetbox" ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 pyyaml 40 ]; 41 42 disabledTestPaths = [ 43 # requires docker for integration test 44 "tests/integration" 45 ]; 46 47 meta = with lib; { 48 changelog = "https://github.com/netbox-community/pynetbox/releases/tag/v${version}"; 49 description = "API client library for Netbox"; 50 homepage = "https://github.com/netbox-community/pynetbox"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ hexa ]; 53 }; 54}