Merge pull request #54317 from peterhoeg/p/hazm

pythonPackages.zm-py: init at 0.3.0
This commit is contained in:
Peter Hoeg 2019-01-21 10:56:41 +08:00 committed by GitHub
commit f4e02920e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 4 deletions

View file

@ -0,0 +1,29 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k
, pytest, requests }:
buildPythonPackage rec {
pname = "zm-py";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1hq83svprd21r74palhs3xq15g34135349y4lrgr7c76i3f37j2q";
};
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 ];
};
}

View file

@ -221,7 +221,7 @@
"camera.xeoma" = ps: with ps; [ ];
"camera.xiaomi" = ps: with ps; [ ha-ffmpeg ];
"camera.yi" = ps: with ps; [ ha-ffmpeg ];
"camera.zoneminder" = ps: with ps; [ ];
"camera.zoneminder" = ps: with ps; [ zm-py ];
"canary" = ps: with ps; [ ];
"cast" = ps: with ps; [ PyChromecast ];
"climate" = ps: with ps; [ ];
@ -1222,7 +1222,7 @@
"sensor.zestimate" = ps: with ps; [ xmltodict ];
"sensor.zha" = ps: with ps; [ ];
"sensor.zigbee" = ps: with ps; [ ];
"sensor.zoneminder" = ps: with ps; [ ];
"sensor.zoneminder" = ps: with ps; [ zm-py ];
"sensor.zwave" = ps: with ps; [ ];
"shell_command" = ps: with ps; [ ];
"shiftr" = ps: with ps; [ paho-mqtt ];
@ -1358,7 +1358,7 @@
"switch.xiaomi_miio" = ps: with ps; [ construct ];
"switch.zha" = ps: with ps; [ ];
"switch.zigbee" = ps: with ps; [ ];
"switch.zoneminder" = ps: with ps; [ ];
"switch.zoneminder" = ps: with ps; [ zm-py ];
"switch.zwave" = ps: with ps; [ ];
"system_log" = ps: with ps; [ aiohttp-cors ];
"tado" = ps: with ps; [ ];
@ -1468,7 +1468,7 @@
"zone.config_flow" = ps: with ps; [ ];
"zone.const" = ps: with ps; [ ];
"zone.zone" = ps: with ps; [ ];
"zoneminder" = ps: with ps; [ ];
"zoneminder" = ps: with ps; [ zm-py ];
"zwave" = ps: with ps; [ homeassistant-pyozw pydispatcher ];
"zwave.config_flow" = ps: with ps; [ ];
"zwave.const" = ps: with ps; [ ];

View file

@ -5177,6 +5177,8 @@ in {
inherit python;
})).python;
zm-py = callPackage ../development/python-modules/zm-py { };
rfc7464 = callPackage ../development/python-modules/rfc7464 { };
foundationdb51 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb51; };