2020-11-03 02:18:15 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-01-09 10:05:03 +00:00
|
|
|
, aiosqlite
|
2020-11-03 02:18:15 +00:00
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, crccheck
|
2022-05-18 14:49:53 +00:00
|
|
|
, cryptography
|
2020-11-03 02:18:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pycryptodome
|
|
|
|
, pytest-aiohttp
|
2021-08-08 23:34:03 +00:00
|
|
|
, pytest-timeout
|
2020-11-03 02:18:15 +00:00
|
|
|
, pytestCheckHook
|
2021-08-08 23:34:03 +00:00
|
|
|
, pythonOlder
|
|
|
|
, voluptuous
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
pname = "zigpy";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.47.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zigpy";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-Jx7KnukwWaSi16Buh+Dt7RiCFEbQXXypnKYbYoMQyDY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2021-01-09 10:05:03 +00:00
|
|
|
aiosqlite
|
2020-11-03 02:18:15 +00:00
|
|
|
crccheck
|
2022-05-18 14:49:53 +00:00
|
|
|
cryptography
|
2020-11-03 02:18:15 +00:00
|
|
|
pycryptodome
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-aiohttp
|
2021-08-08 23:34:03 +00:00
|
|
|
pytest-timeout
|
2020-11-03 02:18:15 +00:00
|
|
|
pytestCheckHook
|
2021-08-08 23:34:03 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
asynctest
|
2020-11-03 02:18:15 +00:00
|
|
|
];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
disabledTests = [
|
|
|
|
# RuntimeError: coroutine 'test_remigrate_forcibly_downgraded_v4' was never awaited
|
2021-08-08 23:34:03 +00:00
|
|
|
#"test_remigrate_forcibly_downgraded_v4"
|
2021-07-24 12:14:16 +00:00
|
|
|
# RuntimeError: Event loop is closed
|
2021-08-08 23:34:03 +00:00
|
|
|
#"test_startup"
|
2021-07-24 12:14:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"zigpy.application"
|
|
|
|
"zigpy.config"
|
|
|
|
"zigpy.exceptions"
|
|
|
|
"zigpy.types"
|
|
|
|
"zigpy.zcl"
|
|
|
|
];
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library implementing a ZigBee stack";
|
|
|
|
homepage = "https://github.com/zigpy/zigpy";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|