nixpkgs/pkgs/development/python-modules/pyroute2/default.nix

47 lines
917 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, mitogen
, pyroute2-core
, pyroute2-ethtool
, pyroute2-ipdb
, pyroute2-ipset
, pyroute2-ndb
, pyroute2-nftables
, pyroute2-nslink
}:
2016-12-23 23:53:15 +00:00
buildPythonPackage rec {
pname = "pyroute2";
version = "0.6.1";
2016-12-23 23:53:15 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nvG1PcuyQoZPrfMS4atsXsvpInjYt1bUIeX6Ol5DsO8=";
2016-12-23 23:53:15 +00:00
};
propagatedBuildInputs = [
mitogen
pyroute2-core
pyroute2-ethtool
pyroute2-ipdb
pyroute2-ipset
pyroute2-ndb
pyroute2-nftables
pyroute2-nslink
];
# Requires root privileges, https://github.com/svinota/pyroute2/issues/778
2016-12-23 23:53:15 +00:00
doCheck = false;
pythonImportsCheck = [ "pyroute2" ];
meta = with lib; {
2016-12-23 23:53:15 +00:00
description = "Python Netlink library";
homepage = "https://github.com/svinota/pyroute2";
2016-12-23 23:53:15 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ mic92 ];
platforms = platforms.unix;
2016-12-23 23:53:15 +00:00
};
}