1{stdenv, buildPythonPackage, fetchurl}:
2
3buildPythonPackage rec {
4 pname = "pyroute2";
5 version = "0.4.21";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "mirror://pypi/p/pyroute2/${name}.tar.gz";
10 sha256 = "7afad28ee0a0f3e7c34adaa9f953d00560ed9910203e93f107833b6e8d151171";
11 };
12
13 # requires root priviledges
14 doCheck = false;
15
16 meta = with stdenv.lib; {
17 description = "Python Netlink library";
18 homepage = https://github.com/svinota/pyroute2;
19 license = licenses.asl20;
20 maintainers = [maintainers.mic92];
21 platforms = platforms.linux;
22 };
23}