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:
23
pkgs/development/python-modules/crccheck/default.nix
Normal file
23
pkgs/development/python-modules/crccheck/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/pyserial-asyncio/default.nix
Normal file
24
pkgs/development/python-modules/pyserial-asyncio/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/zha-quirks/default.nix
Normal file
24
pkgs/development/python-modules/zha-quirks/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/zigpy-deconz/default.nix
Normal file
25
pkgs/development/python-modules/zigpy-deconz/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/zigpy/default.nix
Normal file
25
pkgs/development/python-modules/zigpy/default.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user