2019-01-06 13:28:22 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
|
|
|
, pytest, requests }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zm-py";
|
2020-11-29 14:04:46 +00:00
|
|
|
version = "0.5.2";
|
2019-01-06 13:28:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:46 +00:00
|
|
|
sha256 = "b391cca0e52f2a887aa7a46c314b73335b7e3341c428b425fcf314983e5ebb36";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rohankapoorcom/zm-py";
|
2019-01-06 13:28:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|