2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asynctest,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyserial-asyncio,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
zigpy,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-cc";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "0.5.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
# https://github.com/Martiusweb/asynctest/issues/152
|
|
|
|
# broken by upstream python bug with asynctest and
|
|
|
|
# is used exclusively by home-assistant with python 3.8
|
|
|
|
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-cc";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "U3S8tQ3zPlexZDt5GvCd+rOv7CBVeXJJM1NGe7nRl2o=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial-asyncio
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
doCheck = pythonOlder "3.11"; # asynctest is unsupported on python3.11
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-11-03 02:18:15 +00:00
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_incoming_msg"
|
|
|
|
"test_incoming_msg2"
|
|
|
|
"test_deser"
|
2022-07-14 12:49:19 +00:00
|
|
|
# Fails in sandbox
|
|
|
|
"tests/test_application.py "
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "zigpy_cc" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Library which communicates with Texas Instruments CC2531 radios for zigpy";
|
2020-11-03 02:18:15 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-cc";
|
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;
|
|
|
|
};
|
|
|
|
}
|