git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #74723 from etu/init-zigpy-deconz

home-assistant: Init packages needed for ZHA usage of zigpy deconz usb sticks

commit5d5604fc062d352bd4d009659638176824145e87 authorSarah Brofeldt <sbrofeldt@gmail.com> dateSun 8 Dec 2019, 12:13 (7 years ago) parent48e9738b3c24af
7 files changed+134−3
pkgs/development/python-modules/crccheck/default.nix+23 pkgs/development/python-modules/pyserial-asyncio/default.nix+24 pkgs/development/python-modules/zha-quirks/default.nix+24 pkgs/development/python-modules/zigpy-deconz/default.nix+25 pkgs/development/python-modules/zigpy/default.nix+25 pkgs/servers/home-assistant/component-packages.nix+3−3 pkgs/top-level/python-packages.nix+10
pkgs/development/python-modules/crccheck/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, nose }:
3+
4+buildPythonPackage rec {
5+ pname = "crccheck";
6+ version = "0.6";
7+
8+ buildInputs = [ nose ];
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "0ckymm6s5kw08i1j35fy2cfha1hyq94pq1kc66brb552qgjs91jn";
13+ extension = "zip";
14+ };
15+
16+ meta = with stdenv.lib; {
17+ description = "Python library for CRCs and checksums";
18+ homepage = "https://bitbucket.org/martin_scharrer/crccheck";
19+ license = licenses.gpl3Plus;
20+ maintainers = with maintainers; [ etu ];
21+ platforms = platforms.linux;
22+ };
23+}
pkgs/development/python-modules/pyserial-asyncio/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, buildPythonPackage, fetchPypi, isPy3k
2+, pyserial }:
3+
4+buildPythonPackage rec {
5+ pname = "pyserial-asyncio";
6+ version = "0.4";
7+
8+ disabled = !isPy3k; # Doesn't support python older than 3.4
9+
10+ buildInputs = [ pyserial ];
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "1vlsb0d03krxlj7vpvyhpinnyxyy8s3lk5rs8ba2932dhyl7f1n4";
15+ };
16+
17+ meta = with stdenv.lib; {
18+ description = "asyncio extension package for pyserial";
19+ homepage = "https://github.com/pyserial/pyserial-asyncio";
20+ license = licenses.bsd3;
21+ maintainers = with maintainers; [ etu ];
22+ platforms = platforms.linux;
23+ };
24+}
pkgs/development/python-modules/zha-quirks/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, aiohttp, zigpy
3+, pytest }:
4+
5+buildPythonPackage rec {
6+ pname = "zha-quirks";
7+ version = "0.0.28";
8+
9+ nativeBuildInputs = [ pytest ];
10+ buildInputs = [ aiohttp zigpy ];
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "021z5f5dm74amxkqnz4s1690ydprciqg23jz3n4mpjlxyxbdfj73";
15+ };
16+
17+ meta = with stdenv.lib; {
18+ description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
19+ homepage = "https://github.com/dmulcahey/zha-device-handlers";
20+ license = licenses.asl20;
21+ maintainers = with maintainers; [ etu ];
22+ platforms = platforms.linux;
23+ };
24+}
pkgs/development/python-modules/zigpy-deconz/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, aiohttp, crccheck, pyserial, pyserial-asyncio, pycryptodome, zigpy
3+, pytest }:
4+
5+buildPythonPackage rec {
6+ pname = "zigpy-deconz";
7+ version = "0.7.0";
8+
9+ nativeBuildInputs = [ pytest ];
10+ buildInputs = [ aiohttp crccheck pycryptodome ];
11+ propagatedBuildInputs = [ pyserial pyserial-asyncio zigpy ];
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "049k6lvgf6yjkinbbzm7gqrzqljk2ky9kfw8n53x8kjyfmfp71i2";
16+ };
17+
18+ meta = with stdenv.lib; {
19+ description = "Library which communicates with Deconz radios for zigpy";
20+ homepage = "https://github.com/zigpy/zigpy-deconz";
21+ license = licenses.gpl3Plus;
22+ maintainers = with maintainers; [ etu ];
23+ platforms = platforms.linux;
24+ };
25+}
pkgs/development/python-modules/zigpy/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, aiohttp, crccheck, pycryptodome, pycrypto
3+, pytest, pytest-asyncio, asynctest }:
4+
5+buildPythonPackage rec {
6+ pname = "zigpy-homeassistant";
7+ version = "0.11.0";
8+
9+ nativeBuildInputs = [ pytest pytest-asyncio asynctest ];
10+ buildInputs = [ aiohttp pycryptodome ];
11+ propagatedBuildInputs = [ crccheck pycrypto ];
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "021wg9yhz8dsif60r8s5621mf63bsayjjb2bimhq0am03ql0fysl";
16+ };
17+
18+ meta = with stdenv.lib; {
19+ description = "Library implementing a ZigBee stack";
20+ homepage = "https://github.com/zigpy/zigpy";
21+ license = licenses.gpl3Plus;
22+ maintainers = with maintainers; [ etu ];
23+ platforms = platforms.linux;
24+ };
25+}
pkgs/servers/home-assistant/component-packages.nix+3−3
@@ -644,7 +644,7 @@
644644 "sensehat" = ps: with ps; [ ];
645645 "sensibo" = ps: with ps; [ ];
646646 "sensor" = ps: with ps; [ ];
647− "serial" = ps: with ps; [ ];
647+ "serial" = ps: with ps; [ pyserial-asyncio ];
648648 "serial_pm" = ps: with ps; [ ];
649649 "sesame" = ps: with ps; [ ];
650650 "seven_segments" = ps: with ps; [ ];
@@ -814,7 +814,7 @@
814814 "vicare" = ps: with ps; [ ];
815815 "vivotek" = ps: with ps; [ ];
816816 "vizio" = ps: with ps; [ ];
817− "vlc" = ps: with ps; [ ];
817+ "vlc" = ps: with ps; [ python-vlc ];
818818 "vlc_telnet" = ps: with ps; [ ];
819819 "voicerss" = ps: with ps; [ ];
820820 "volkszaehler" = ps: with ps; [ ];
@@ -873,7 +873,7 @@
873873 "zengge" = ps: with ps; [ ];
874874 "zeroconf" = ps: with ps; [ aiohttp-cors zeroconf ];
875875 "zestimate" = ps: with ps; [ xmltodict ];
876− "zha" = ps: with ps; [ ];
876+ "zha" = ps: with ps; [ zha-quirks zigpy-deconz zigpy ];
877877 "zhong_hong" = ps: with ps; [ ];
878878 "zigbee" = ps: with ps; [ ];
879879 "ziggo_mediabox_xl" = ps: with ps; [ ];
pkgs/top-level/python-packages.nix+10
@@ -1731,6 +1731,8 @@ in {
17311731
17321732 crc16 = callPackage ../development/python-modules/crc16 { };
17331733
1734+ crccheck = callPackage ../development/python-modules/crccheck { };
1735+
17341736 croniter = callPackage ../development/python-modules/croniter { };
17351737
17361738 csscompressor = callPackage ../development/python-modules/csscompressor {};
@@ -2275,6 +2277,10 @@ in {
22752277
22762278 zict = callPackage ../development/python-modules/zict { };
22772279
2280+ zigpy = callPackage ../development/python-modules/zigpy { };
2281+
2282+ zigpy-deconz = callPackage ../development/python-modules/zigpy-deconz { };
2283+
22782284 digital-ocean = callPackage ../development/python-modules/digitalocean { };
22792285
22802286 leather = callPackage ../development/python-modules/leather { };
@@ -4815,6 +4821,8 @@ in {
48154821
48164822 pyserial = callPackage ../development/python-modules/pyserial {};
48174823
4824+ pyserial-asyncio = callPackage ../development/python-modules/pyserial-asyncio { };
4825+
48184826 pysonos = callPackage ../development/python-modules/pysonos {};
48194827
48204828 pymongo = callPackage ../development/python-modules/pymongo {};
@@ -5766,6 +5774,8 @@ in {
57665774
57675775 zfec = callPackage ../development/python-modules/zfec { };
57685776
5777+ zha-quirks = callPackage ../development/python-modules/zha-quirks { };
5778+
57695779 zipp = callPackage ../development/python-modules/zipp { };
57705780
57715781 zope_broken = callPackage ../development/python-modules/zope_broken { };