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-21 10:56:41 +0800
committerGitHub <noreply@github.com>2019-01-21 10:56:41 +0800
commitf4e02920e2c3967dd7101b6ffe229ef92ade99ac (patch)
tree7eee223e0b871fa45cb67f2f20e3fceafb51efd7 /pkgs/development/python-modules
parent958201a98f5602e962da107e28c0a1c993bd5bec (diff)
parent7aff24f4b0933f7ba61f10d2481fc349617f1870 (diff)
downloadnixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.tar
nixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.tar.gz
nixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.tar.bz2
nixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.tar.lz
nixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.tar.xz
nixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.tar.zst
nixlib-f4e02920e2c3967dd7101b6ffe229ef92ade99ac.zip
Merge pull request #54317 from peterhoeg/p/hazm
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 ];
+  };
+}