1{ lib 2, buildPythonPackage 3, fetchPypi 4, mitogen 5, pyroute2-core 6, pyroute2-ethtool 7, pyroute2-ipdb 8, pyroute2-ipset 9, pyroute2-ndb 10, pyroute2-nftables 11, pyroute2-nslink 12}: 13 14buildPythonPackage rec { 15 pname = "pyroute2"; 16 version = "0.6.5"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-0JlciuuWwOTu1NYul8nXlQAKGjO3R9bcVDJmZYV88Rw="; 21 }; 22 23 propagatedBuildInputs = [ 24 mitogen 25 pyroute2-core 26 pyroute2-ethtool 27 pyroute2-ipdb 28 pyroute2-ipset 29 pyroute2-ndb 30 pyroute2-nftables 31 pyroute2-nslink 32 ]; 33 34 # Requires root privileges, https://github.com/svinota/pyroute2/issues/778 35 doCheck = false; 36 37 pythonImportsCheck = [ "pyroute2" ]; 38 39 meta = with lib; { 40 description = "Python Netlink library"; 41 homepage = "https://github.com/svinota/pyroute2"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ mic92 ]; 44 platforms = platforms.unix; 45 }; 46}