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";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.5.4";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-20 23:08:51 +00:00
|
|
|
owner = "zigpy";
|
|
|
|
repo = pname;
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "0jki9qmjazh0by02c0w17dyaz0nl3gzjiy064mj6pi502d175831";
|
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
|
2021-05-20 23:08:51 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
asynctest
|
2020-11-03 02:18:15 +00:00
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [ "zigpy_znp" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Python library for zigpy which communicates with TI ZNP radios";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|