nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 37 lines 743 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyroute2-core 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pyroute2-core"; 10 version = "0.6.9"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 pname = "pyroute2.core"; 17 inherit version; 18 hash = "sha256-lH0Mi2nR4jqawvpvVfn79U0AflxE8lU1VLKvqAEXDOo="; 19 }; 20 21 # pyroute2 sub-modules have no tests 22 doCheck = false; 23 24 pythonImportsCheck = [ 25 "pr2modules.common" 26 "pr2modules.config" 27 "pr2modules.proxy" 28 ]; 29 30 meta = with lib; { 31 description = "Core module for pyroute2"; 32 homepage = "https://github.com/svinota/pyroute2"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ fab ]; 35 platforms = platforms.unix; 36 }; 37}