01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, click
|
|
, click-log
|
|
, dataclasses
|
|
, pure-pcapy3
|
|
, pyserial-asyncio
|
|
, voluptuous
|
|
, zigpy
|
|
, asynctest
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bellows";
|
|
version = "0.34.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = "bellows";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-7jaXNz7i+kF64T+5/QWKGpxHCkg/M9U2hbWrVB2tjH8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
click-log
|
|
pure-pcapy3
|
|
pyserial-asyncio
|
|
voluptuous
|
|
zigpy
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
dataclasses
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
asynctest
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"bellows"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to implement EZSP for EmberZNet devices";
|
|
homepage = "https://github.com/zigpy/bellows";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
};
|
|
}
|