about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ncclient/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ncclient/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/ncclient/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ncclient/default.nix b/nixpkgs/pkgs/development/python-modules/ncclient/default.nix
new file mode 100644
index 000000000000..010e2a5bae3f
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/ncclient/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, paramiko
+, selectors2
+, lxml
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "ncclient";
+  version = "0.6.12";
+
+  src = fetchFromGitHub {
+    owner = pname;
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1sjvqaxb54nmqljiw5bg1423msa9rg015wiix9fsm6djk3wpklmk";
+  };
+
+  propagatedBuildInputs = [
+    paramiko
+    lxml
+    selectors2
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "ncclient" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/ncclient/ncclient";
+    description = "Python library for NETCONF clients";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ xnaveira ];
+  };
+}