about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2019-01-06 21:28:22 +0800
committerPeter Hoeg <peter@hoeg.com>2019-01-19 23:28:37 +0800
commita7f0a58c4b775bf0525e1f7032c91ca7be2ca99d (patch)
treed6517847e9198613294f40d548938f6f757312b5 /pkgs/development/python-modules
parentbe445a9074f139d63e704fa82610d25456562c3d (diff)
downloadnixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.tar
nixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.tar.gz
nixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.tar.bz2
nixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.tar.lz
nixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.tar.xz
nixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.tar.zst
nixlib-a7f0a58c4b775bf0525e1f7032c91ca7be2ca99d.zip
pythonPackages.zm-py: init at 0.3.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/zm-py/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/zm-py/default.nix b/pkgs/development/python-modules/zm-py/default.nix
new file mode 100644
index 000000000000..d7f212f22844
--- /dev/null
+++ b/pkgs/development/python-modules/zm-py/default.nix
@@ -0,0 +1,29 @@
+{ lib, fetchPypi, buildPythonPackage, isPy3k
+, pytest, requests }:
+
+buildPythonPackage rec {
+  pname = "zm-py";
+  version = "0.3.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1hq83svprd21r74palhs3xq15g34135349y4lrgr7c76i3f37j2q";
+  };
+
+  disabled = !isPy3k;
+
+  propagatedBuildInputs = [ requests ];
+
+  checkInputs = [ pytest ];
+
+  checkPhase = ''
+    PYTHONPATH="./zoneminder:$PYTHONPATH" pytest
+  '';
+
+  meta = with lib; {
+    description = "A loose python wrapper around the ZoneMinder REST API";
+    homepage = https://github.com/rohankapoorcom/zm-py;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ peterhoeg ];
+  };
+}