about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyroute2-ipset
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-05-22 22:04:11 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-05-23 00:32:06 +0200
commitc64126b658a5243742c14761c443842358e6df09 (patch)
tree3742012c3e4cc12bbe68c95511993a135784359e /pkgs/development/python-modules/pyroute2-ipset
parent2ef07d23b3c06852ae28eaeea22ac47e6b904f3b (diff)
python3Packages.pyroute2-ipset: init at 0.6.1
Diffstat (limited to 'pkgs/development/python-modules/pyroute2-ipset')
-rw-r--r--pkgs/development/python-modules/pyroute2-ipset/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyroute2-ipset/default.nix b/pkgs/development/python-modules/pyroute2-ipset/default.nix
new file mode 100644
index 0000000000000..5ea6c7ce5d4d7
--- /dev/null
+++ b/pkgs/development/python-modules/pyroute2-ipset/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pyroute2-core
+}:
+
+buildPythonPackage rec {
+  pname = "pyroute2-ipset";
+  version = "0.6.1";
+
+  src = fetchPypi {
+    pname = "pyroute2.ipset";
+    inherit version;
+    sha256 = "1d5l9f028y7fjfbxpp5wls9ffdgrln24dlz8k4p11b5n445liakx";
+  };
+
+  propagatedBuildInputs = [
+    pyroute2-core
+  ];
+
+  # pyroute2 sub-modules have no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "pr2modules.ipset"
+  ];
+
+  meta = with lib; {
+    description = "Ipset module for pyroute2";
+    homepage = "https://github.com/svinota/pyroute2";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fab ];
+    platforms = platforms.unix;
+  };
+}