2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-10-24 14:26:06 +00:00
|
|
|
, async-timeout
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, coloredlogs
|
|
|
|
, fetchFromGitHub
|
2021-05-05 06:09:42 +00:00
|
|
|
, jsonschema
|
2020-10-24 14:26:06 +00:00
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
2021-05-05 06:09:42 +00:00
|
|
|
, pythonOlder
|
2020-10-24 14:26:06 +00:00
|
|
|
, voluptuous
|
2021-05-05 06:09:42 +00:00
|
|
|
, zigpy
|
|
|
|
}:
|
2020-10-24 14:26:06 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-znp";
|
2021-05-05 06:09:42 +00:00
|
|
|
version = "0.5.1";
|
2020-10-24 14:26:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-05 06:09:42 +00:00
|
|
|
owner = "zigpy";
|
|
|
|
repo = pname;
|
2020-10-24 14:26:06 +00:00
|
|
|
rev = "v${version}";
|
2021-05-05 06:09:42 +00:00
|
|
|
sha256 = "152d803jfrvkj4namni41fnbbnq85wd7zsqjhmkwrrmn2gvqjiln";
|
2020-10-24 14:26:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
|
|
|
coloredlogs
|
2021-05-05 06:09:42 +00:00
|
|
|
jsonschema
|
2020-10-24 14:26:06 +00:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
voluptuous
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
2021-05-05 06:09:42 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
asynctest
|
2020-10-24 14:26:06 +00:00
|
|
|
];
|
|
|
|
|
2021-05-05 06:09:42 +00:00
|
|
|
pythonImportsCheck = [ "zigpy_znp" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-05-05 06:09:42 +00:00
|
|
|
description = "Python library for zigpy which communicates with TI ZNP radios";
|
|
|
|
homepage = "https://github.com/zigpy/zigpy-znp";
|
2020-10-24 14:26:06 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|