1{ lib, fetchPypi, buildPythonPackage, isPy3k
2, pytest, requests }:
3
4buildPythonPackage rec {
5 pname = "zm-py";
6 version = "0.5.2";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "b391cca0e52f2a887aa7a46c314b73335b7e3341c428b425fcf314983e5ebb36";
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}