lol

Merge pull request #171219 from fabaff/netutils

python310Packages.netutils: init at 1.1.0

authored by

Sandro and committed by
GitHub
ed199c50 4b348d6a

+68
+66
pkgs/development/python-modules/netutils/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , jinja2 6 + , poetry-core 7 + , pytestCheckHook 8 + , pythonOlder 9 + , pyyaml 10 + , toml 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "netutils"; 15 + version = "1.1.0"; 16 + format = "pyproject"; 17 + 18 + disabled = pythonOlder "3.7"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "networktocode"; 22 + repo = pname; 23 + rev = "v${version}"; 24 + hash = "sha256-rTSesG7XmIzu2DcJMVgZMlh0kRQ8jEB3t++rgf63Flw="; 25 + }; 26 + 27 + nativeBuildInputs = [ 28 + poetry-core 29 + ]; 30 + 31 + checkInputs = [ 32 + jinja2 33 + pytestCheckHook 34 + pyyaml 35 + toml 36 + ]; 37 + 38 + patches = [ 39 + # Switch to poetry-core, https://github.com/networktocode/netutils/pull/115 40 + (fetchpatch { 41 + name = "switch-to-poetry-core.patch"; 42 + url = "https://github.com/networktocode/netutils/commit/edc8b06686db4e5b4c8c4deb6d0effbc22177b31.patch"; 43 + sha256 = "sha256-K5oSbtOJYeKbxzbaZQBXcl6LsHQAK8CxBLfkak15V6M="; 44 + }) 45 + ]; 46 + 47 + pythonImportsCheck = [ 48 + "netutils" 49 + ]; 50 + 51 + disabledTests = [ 52 + # Tests require network access 53 + "test_is_fqdn_resolvable" 54 + "test_fqdn_to_ip" 55 + "test_tcp_ping" 56 + # Skip SPhinx test 57 + "test_sphinx_build" 58 + ]; 59 + 60 + meta = with lib; { 61 + description = "Library that is a collection of objects for common network automation tasks"; 62 + homepage = "https://github.com/networktocode/netutils"; 63 + license = licenses.asl20; 64 + maintainers = with maintainers; [ fab ]; 65 + }; 66 + }
+2
pkgs/top-level/python-packages.nix
··· 5587 5587 5588 5588 nettigo-air-monitor = callPackage ../development/python-modules/nettigo-air-monitor { }; 5589 5589 5590 + netutils = callPackage ../development/python-modules/netutils { }; 5591 + 5590 5592 networkx = callPackage ../development/python-modules/networkx { }; 5591 5593 5592 5594 neuron-mpi = pkgs.neuron-mpi.override { inherit python; };