Merge pull request #128024 from dotlambda/python-izone-init

This commit is contained in:
Sandro 2021-06-24 21:05:40 +02:00 committed by GitHub
commit c6a049a3d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 1 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, netifaces
, asynctest
, pytest-aiohttp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-izone";
version = "1.1.5";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "Swamp-Ig";
repo = "pizone";
rev = "v${version}";
sha256 = "0ilvawlhyg5p08ri26zbcvgysrfsmza23scy4ijrx3jbc3669r2c";
};
propagatedBuildInputs = [
aiohttp
netifaces
];
checkInputs = [
asynctest
pytest-aiohttp
pytestCheckHook
];
disabledTests = [
# attempt network connection
"test_fail_on_connect"
"test_connection_lost"
"test_ip_addr_change"
];
pythonImportsCheck = [ "pizone" ];
meta = with lib; {
description = "A python interface to the iZone airconditioner controller";
homepage = "https://github.com/Swamp-Ig/pizone";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -414,7 +414,7 @@
"isy994" = ps: with ps; [ pyisy ];
"itach" = ps: with ps; [ ]; # missing inputs: pyitachip2ir
"itunes" = ps: with ps; [ ];
"izone" = ps: with ps; [ ]; # missing inputs: python-izone
"izone" = ps: with ps; [ python-izone ];
"jewish_calendar" = ps: with ps; [ hdate ];
"joaoapps_join" = ps: with ps; [ ]; # missing inputs: python-join-api
"juicenet" = ps: with ps; [ ]; # missing inputs: python-juicenet

View file

@ -487,6 +487,7 @@ in with py.pkgs; buildPythonApplication rec {
"iqvia"
"islamic_prayer_times"
"isy994"
"izone"
"jewish_calendar"
"kira"
"kmtronic"

View file

@ -5329,6 +5329,8 @@ in {
python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { };
python-izone = callPackage ../development/python-modules/python-izone { };
python-openems = callPackage ../development/python-modules/python-openems { };
python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };