2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-04 09:07:49 +00:00
|
|
|
, mitogen
|
|
|
|
, pyroute2-core
|
|
|
|
, pyroute2-ethtool
|
|
|
|
, pyroute2-ipdb
|
|
|
|
, pyroute2-ipset
|
|
|
|
, pyroute2-ndb
|
|
|
|
, pyroute2-nftables
|
|
|
|
, pyroute2-nslink
|
2021-04-15 00:37:46 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyroute2";
|
2021-09-26 12:46:18 +00:00
|
|
|
version = "0.6.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "sha256-0JlciuuWwOTu1NYul8nXlQAKGjO3R9bcVDJmZYV88Rw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mitogen
|
|
|
|
pyroute2-core
|
|
|
|
pyroute2-ethtool
|
|
|
|
pyroute2-ipdb
|
|
|
|
pyroute2-ipset
|
|
|
|
pyroute2-ndb
|
|
|
|
pyroute2-nftables
|
|
|
|
pyroute2-nslink
|
|
|
|
];
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
# Requires root privileges, https://github.com/svinota/pyroute2/issues/778
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
pythonImportsCheck = [ "pyroute2" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python Netlink library";
|
|
|
|
homepage = "https://github.com/svinota/pyroute2";
|
|
|
|
license = licenses.asl20;
|
2021-04-15 00:37:46 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|