2019-01-06 13:28:22 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
|
|
|
, pytest, requests }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zm-py";
|
2019-02-14 07:37:34 +00:00
|
|
|
version = "0.3.3";
|
2019-01-06 13:28:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:34 +00:00
|
|
|
sha256 = "7cac73bd4f5e729fd8b3cff6f456652c3fd76b1a11f5d539bc7e14ffc7a87e9a";
|
2019-01-06 13:28:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|