3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, coloredlogs
|
|
, fetchFromGitHub
|
|
, jsonschema
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
, zigpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zigpy-znp";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "152d803jfrvkj4namni41fnbbnq85wd7zsqjhmkwrrmn2gvqjiln";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
coloredlogs
|
|
jsonschema
|
|
pyserial
|
|
pyserial-asyncio
|
|
voluptuous
|
|
zigpy
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
asynctest
|
|
];
|
|
|
|
pythonImportsCheck = [ "zigpy_znp" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for zigpy which communicates with TI ZNP radios";
|
|
homepage = "https://github.com/zigpy/zigpy-znp";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|