83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, click
|
|
, click-log
|
|
, fetchFromGitHub
|
|
, pure-pcapy3
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
, zigpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bellows";
|
|
version = "0.34.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = "bellows";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-eD9E/NbM3t1kWhPwY2SmjuCk+XVwklm4rwzISlQHtq0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
click-log
|
|
pure-pcapy3
|
|
pyserial-asyncio
|
|
voluptuous
|
|
zigpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
changelog = "https://github.com/zigpy/bellows/releases/tag/${version}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
};
|
|
}
|