Merge pull request #74723 from etu/init-zigpy-deconz
home-assistant: Init packages needed for ZHA usage of zigpy deconz usb sticks
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
|
, nose }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "crccheck";
|
||||||
|
version = "0.6";
|
||||||
|
|
||||||
|
buildInputs = [ nose ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0ckymm6s5kw08i1j35fy2cfha1hyq94pq1kc66brb552qgjs91jn";
|
||||||
|
extension = "zip";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Python library for CRCs and checksums";
|
||||||
|
homepage = "https://bitbucket.org/martin_scharrer/crccheck";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ etu ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||||
|
, pyserial }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyserial-asyncio";
|
||||||
|
version = "0.4";
|
||||||
|
|
||||||
|
disabled = !isPy3k; # Doesn't support python older than 3.4
|
||||||
|
|
||||||
|
buildInputs = [ pyserial ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1vlsb0d03krxlj7vpvyhpinnyxyy8s3lk5rs8ba2932dhyl7f1n4";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "asyncio extension package for pyserial";
|
||||||
|
homepage = "https://github.com/pyserial/pyserial-asyncio";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ etu ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
|
, aiohttp, zigpy
|
||||||
|
, pytest }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "zha-quirks";
|
||||||
|
version = "0.0.28";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pytest ];
|
||||||
|
buildInputs = [ aiohttp zigpy ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "021z5f5dm74amxkqnz4s1690ydprciqg23jz3n4mpjlxyxbdfj73";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
|
||||||
|
homepage = "https://github.com/dmulcahey/zha-device-handlers";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ etu ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
|
, aiohttp, crccheck, pyserial, pyserial-asyncio, pycryptodome, zigpy
|
||||||
|
, pytest }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "zigpy-deconz";
|
||||||
|
version = "0.7.0";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pytest ];
|
||||||
|
buildInputs = [ aiohttp crccheck pycryptodome ];
|
||||||
|
propagatedBuildInputs = [ pyserial pyserial-asyncio zigpy ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "049k6lvgf6yjkinbbzm7gqrzqljk2ky9kfw8n53x8kjyfmfp71i2";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Library which communicates with Deconz radios for zigpy";
|
||||||
|
homepage = "https://github.com/zigpy/zigpy-deconz";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ etu ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
|
, aiohttp, crccheck, pycryptodome, pycrypto
|
||||||
|
, pytest, pytest-asyncio, asynctest }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "zigpy-homeassistant";
|
||||||
|
version = "0.11.0";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pytest pytest-asyncio asynctest ];
|
||||||
|
buildInputs = [ aiohttp pycryptodome ];
|
||||||
|
propagatedBuildInputs = [ crccheck pycrypto ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "021wg9yhz8dsif60r8s5621mf63bsayjjb2bimhq0am03ql0fysl";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Library implementing a ZigBee stack";
|
||||||
|
homepage = "https://github.com/zigpy/zigpy";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ etu ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -644,7 +644,7 @@
|
|||||||
"sensehat" = ps: with ps; [ ];
|
"sensehat" = ps: with ps; [ ];
|
||||||
"sensibo" = ps: with ps; [ ];
|
"sensibo" = ps: with ps; [ ];
|
||||||
"sensor" = ps: with ps; [ ];
|
"sensor" = ps: with ps; [ ];
|
||||||
"serial" = ps: with ps; [ ];
|
"serial" = ps: with ps; [ pyserial-asyncio ];
|
||||||
"serial_pm" = ps: with ps; [ ];
|
"serial_pm" = ps: with ps; [ ];
|
||||||
"sesame" = ps: with ps; [ ];
|
"sesame" = ps: with ps; [ ];
|
||||||
"seven_segments" = ps: with ps; [ ];
|
"seven_segments" = ps: with ps; [ ];
|
||||||
@@ -814,7 +814,7 @@
|
|||||||
"vicare" = ps: with ps; [ ];
|
"vicare" = ps: with ps; [ ];
|
||||||
"vivotek" = ps: with ps; [ ];
|
"vivotek" = ps: with ps; [ ];
|
||||||
"vizio" = ps: with ps; [ ];
|
"vizio" = ps: with ps; [ ];
|
||||||
"vlc" = ps: with ps; [ ];
|
"vlc" = ps: with ps; [ python-vlc ];
|
||||||
"vlc_telnet" = ps: with ps; [ ];
|
"vlc_telnet" = ps: with ps; [ ];
|
||||||
"voicerss" = ps: with ps; [ ];
|
"voicerss" = ps: with ps; [ ];
|
||||||
"volkszaehler" = ps: with ps; [ ];
|
"volkszaehler" = ps: with ps; [ ];
|
||||||
@@ -873,7 +873,7 @@
|
|||||||
"zengge" = ps: with ps; [ ];
|
"zengge" = ps: with ps; [ ];
|
||||||
"zeroconf" = ps: with ps; [ aiohttp-cors zeroconf ];
|
"zeroconf" = ps: with ps; [ aiohttp-cors zeroconf ];
|
||||||
"zestimate" = ps: with ps; [ xmltodict ];
|
"zestimate" = ps: with ps; [ xmltodict ];
|
||||||
"zha" = ps: with ps; [ ];
|
"zha" = ps: with ps; [ zha-quirks zigpy-deconz zigpy ];
|
||||||
"zhong_hong" = ps: with ps; [ ];
|
"zhong_hong" = ps: with ps; [ ];
|
||||||
"zigbee" = ps: with ps; [ ];
|
"zigbee" = ps: with ps; [ ];
|
||||||
"ziggo_mediabox_xl" = ps: with ps; [ ];
|
"ziggo_mediabox_xl" = ps: with ps; [ ];
|
||||||
|
|||||||
@@ -1731,6 +1731,8 @@ in {
|
|||||||
|
|
||||||
crc16 = callPackage ../development/python-modules/crc16 { };
|
crc16 = callPackage ../development/python-modules/crc16 { };
|
||||||
|
|
||||||
|
crccheck = callPackage ../development/python-modules/crccheck { };
|
||||||
|
|
||||||
croniter = callPackage ../development/python-modules/croniter { };
|
croniter = callPackage ../development/python-modules/croniter { };
|
||||||
|
|
||||||
csscompressor = callPackage ../development/python-modules/csscompressor {};
|
csscompressor = callPackage ../development/python-modules/csscompressor {};
|
||||||
@@ -2275,6 +2277,10 @@ in {
|
|||||||
|
|
||||||
zict = callPackage ../development/python-modules/zict { };
|
zict = callPackage ../development/python-modules/zict { };
|
||||||
|
|
||||||
|
zigpy = callPackage ../development/python-modules/zigpy { };
|
||||||
|
|
||||||
|
zigpy-deconz = callPackage ../development/python-modules/zigpy-deconz { };
|
||||||
|
|
||||||
digital-ocean = callPackage ../development/python-modules/digitalocean { };
|
digital-ocean = callPackage ../development/python-modules/digitalocean { };
|
||||||
|
|
||||||
leather = callPackage ../development/python-modules/leather { };
|
leather = callPackage ../development/python-modules/leather { };
|
||||||
@@ -4815,6 +4821,8 @@ in {
|
|||||||
|
|
||||||
pyserial = callPackage ../development/python-modules/pyserial {};
|
pyserial = callPackage ../development/python-modules/pyserial {};
|
||||||
|
|
||||||
|
pyserial-asyncio = callPackage ../development/python-modules/pyserial-asyncio { };
|
||||||
|
|
||||||
pysonos = callPackage ../development/python-modules/pysonos {};
|
pysonos = callPackage ../development/python-modules/pysonos {};
|
||||||
|
|
||||||
pymongo = callPackage ../development/python-modules/pymongo {};
|
pymongo = callPackage ../development/python-modules/pymongo {};
|
||||||
@@ -5766,6 +5774,8 @@ in {
|
|||||||
|
|
||||||
zfec = callPackage ../development/python-modules/zfec { };
|
zfec = callPackage ../development/python-modules/zfec { };
|
||||||
|
|
||||||
|
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
|
||||||
|
|
||||||
zipp = callPackage ../development/python-modules/zipp { };
|
zipp = callPackage ../development/python-modules/zipp { };
|
||||||
|
|
||||||
zope_broken = callPackage ../development/python-modules/zope_broken { };
|
zope_broken = callPackage ../development/python-modules/zope_broken { };
|
||||||
|
|||||||
Reference in New Issue
Block a user