mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
47 lines
917 B
Nix
47 lines
917 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mitogen
|
|
, pyroute2-core
|
|
, pyroute2-ethtool
|
|
, pyroute2-ipdb
|
|
, pyroute2-ipset
|
|
, pyroute2-ndb
|
|
, pyroute2-nftables
|
|
, pyroute2-nslink
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyroute2";
|
|
version = "0.6.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-nvG1PcuyQoZPrfMS4atsXsvpInjYt1bUIeX6Ol5DsO8=";
|
|
};
|
|
|
|
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
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyroute2" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Netlink library";
|
|
homepage = "https://github.com/svinota/pyroute2";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|