about summary refs log tree commit diff
path: root/pkgs/development/python-modules/routeros-api/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/routeros-api/default.nix')
-rw-r--r--pkgs/development/python-modules/routeros-api/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/routeros-api/default.nix b/pkgs/development/python-modules/routeros-api/default.nix
new file mode 100644
index 000000000000..622d29584f02
--- /dev/null
+++ b/pkgs/development/python-modules/routeros-api/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, six
+, mock
+, tox
+}:
+
+buildPythonPackage rec {
+  pname = "routeros-api";
+  version = "0.17.0";
+
+  # N.B. The version published on PyPI is missing tests.
+  src = fetchFromGitHub {
+    owner = "socialwifi";
+    repo = pname;
+    rev = version;
+    sha256 = "wpIfeYZ1w/yoNCHLYFVjn0O4Rb+N5lfvYzhGuN+HDTA=";
+  };
+
+  nativeCheckInputs = [
+    mock
+    tox
+  ];
+
+  propagatedBuildInputs = [ six ];
+
+  meta = with lib; {
+    description = "Python API to RouterBoard devices produced by MikroTik.";
+    homepage = "https://github.com/socialwifi/RouterOS-api";
+    license = licenses.mit;
+    maintainers = with maintainers; [ quentin ];
+    platforms = platforms.all;
+  };
+}