2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-03 02:18:15 +00:00
|
|
|
, async-timeout
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, coloredlogs
|
|
|
|
, fetchFromGitHub
|
2021-05-20 23:08:51 +00:00
|
|
|
, jsonschema
|
2020-11-03 02:18:15 +00:00
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, pythonOlder
|
2020-11-03 02:18:15 +00:00
|
|
|
, voluptuous
|
2021-05-20 23:08:51 +00:00
|
|
|
, zigpy
|
|
|
|
}:
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-znp";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.9.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-20 23:08:51 +00:00
|
|
|
owner = "zigpy";
|
|
|
|
repo = pname;
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-32QSFBzYg+E++5euCWKgbF3/uLEn1uObenmR/Wv9XZc=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
|
|
|
coloredlogs
|
2021-05-20 23:08:51 +00:00
|
|
|
jsonschema
|
2020-11-03 02:18:15 +00:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
voluptuous
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
2022-07-14 12:49:19 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
2021-05-20 23:08:51 +00:00
|
|
|
asynctest
|
2020-11-03 02:18:15 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--asyncio-mode=legacy"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zigpy_znp"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Library for zigpy which communicates with TI ZNP radios";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-znp";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|