Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 675 B view raw
1{ lib, fetchPypi, buildPythonPackage, isPy3k 2, pytest, requests }: 3 4buildPythonPackage rec { 5 pname = "zm-py"; 6 version = "0.3.3"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "7cac73bd4f5e729fd8b3cff6f456652c3fd76b1a11f5d539bc7e14ffc7a87e9a"; 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}