1{ lib, fetchPypi, buildPythonPackage, isPy3k
2, pytest, requests }:
3
4buildPythonPackage rec {
5 pname = "zm-py";
6 version = "0.4.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "f9693ca046de4ea12c1afb5c67709ec0c2a48744566c0a1a9327348e1a1617b0";
11 };
12
13 disabled = !isPy3k;
14
15 propagatedBuildInputs = [ requests ];
16
17 checkInputs = [ pytest ];
18
19 checkPhase = ''
20 PYTHONPATH="./zoneminder:$PYTHONPATH" pytest
21 '';
22
23 meta = with lib; {
24 description = "A loose python wrapper around the ZoneMinder REST API";
25 homepage = "https://github.com/rohankapoorcom/zm-py";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ peterhoeg ];
28 };
29}