summary refs log tree commit diff
path: root/pkgs/development/python-modules/librouteros/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-02-18 13:05:20 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-02-18 07:50:23 -0800
commitf16fcc0ba55c6d7df4244d29a80d1a1f37d519bb (patch)
tree5b2e88f18048d311ec8c606e8690acf3b36ec164 /pkgs/development/python-modules/librouteros/default.nix
parent6e10cf2c1c3308dfb20825144eb70f9675804148 (diff)
downloadnixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.tar
nixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.tar.gz
nixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.tar.bz2
nixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.tar.lz
nixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.tar.xz
nixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.tar.zst
nixpkgs-f16fcc0ba55c6d7df4244d29a80d1a1f37d519bb.zip
python3Packages.librouteros: init at 3.1.0
Diffstat (limited to 'pkgs/development/python-modules/librouteros/default.nix')
-rw-r--r--pkgs/development/python-modules/librouteros/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/librouteros/default.nix b/pkgs/development/python-modules/librouteros/default.nix
new file mode 100644
index 00000000000..32c9889681c
--- /dev/null
+++ b/pkgs/development/python-modules/librouteros/default.nix
@@ -0,0 +1,44 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, isPy3k
+, pytestCheckHook
+, pytest-xdist
+}:
+
+buildPythonPackage rec {
+  pname = "librouteros";
+  version = "3.1.0";
+  disabled = !isPy3k;
+
+  src = fetchFromGitHub {
+    owner = "luqasz";
+    repo = pname;
+    rev = version;
+    sha256 = "1skjwnqa3vcpq9gzgpw93wdmisq15fp0q07kzyq3fgx4yg7b6sql";
+  };
+
+  checkInputs = [
+    pytest-xdist
+    pytestCheckHook
+  ];
+
+  disabledTests = [
+    # Disable tests which require QEMU to run
+    "test_login"
+    "test_long_word"
+    "test_query"
+    "test_add_then_remove"
+    "test_add_then_update"
+    "test_generator_ditch"
+  ];
+
+  pythonImportsCheck = [ "librouteros" ];
+
+  meta = with lib; {
+    description = "Python implementation of the MikroTik RouterOS API";
+    homepage = "https://librouteros.readthedocs.io/";
+    license = with licenses; [ gpl2Only ];
+    maintainers = with maintainers; [ fab ];
+  };
+}