2020-11-03 02:18:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, gpiozero
|
2022-07-14 12:49:19 +00:00
|
|
|
, mock
|
2020-11-03 02:18:15 +00:00
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
2020-11-21 19:51:51 +00:00
|
|
|
, pyusb
|
2020-11-03 02:18:15 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-07-14 12:49:19 +00:00
|
|
|
, zigpy
|
|
|
|
}:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-zigate";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.10.3";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zigpy-zigate";
|
2022-10-06 18:32:54 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
hash = "sha256-zO20ySRO9XFcDB8TkUJW2MxkhDIBpHp9Z24gupssOaY=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
gpiozero
|
2020-11-03 02:18:15 +00:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
2020-11-21 19:51:51 +00:00
|
|
|
pyusb
|
2020-11-03 02:18:15 +00:00
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
mock
|
2020-11-03 02:18:15 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zigpy_zigate"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Fails in sandbox
|
|
|
|
"tests/test_application.py "
|
|
|
|
];
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Library which communicates with ZiGate radios for zigpy";
|
2020-11-03 02:18:15 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-zigate";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-07-18 16:21:45 +00:00
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|