10 buildPythonPackage rec {
15 disabled = pythonOlder "3.7";
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 hash = "sha256-zB792ZwDWd74YBYvQ5au0t2RWTIAqrWvNtQ/e+ZEk50=";
24 nativeBuildInputs = [ setuptools ];
26 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
28 # Requires root privileges, https://github.com/svinota/pyroute2/issues/778
31 pythonImportsCheck = [
50 description = "Python Netlink library";
51 homepage = "https://github.com/svinota/pyroute2";
52 changelog = "https://github.com/svinota/pyroute2/blob/${version}/CHANGELOG.rst";
53 license = with licenses; [
57 maintainers = with maintainers; [
61 platforms = platforms.unix;