nixpkgs/pkgs/development/python-modules/zm-py/default.nix

30 lines
675 B
Nix
Raw Normal View History

2019-01-06 13:28:22 +00:00
{ lib, fetchPypi, buildPythonPackage, isPy3k
, pytest, requests }:
buildPythonPackage rec {
pname = "zm-py";
2019-12-19 19:31:26 +00:00
version = "0.4.0";
2019-01-06 13:28:22 +00:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:26 +00:00
sha256 = "f9693ca046de4ea12c1afb5c67709ec0c2a48744566c0a1a9327348e1a1617b0";
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 ];
};
}