567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
click-log,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytest-timeout,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
voluptuous,
|
|
zigpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bellows";
|
|
version = "0.48.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = "bellows";
|
|
tag = version;
|
|
hash = "sha256-KZ4VmtHQnQ+t9q/ZtzmlObpnBIxlgkT44nt11f/1FpQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"setuptools-git-versioning<2"' "" \
|
|
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
click
|
|
click-log
|
|
voluptuous
|
|
zigpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
];
|
|
|
|
pythonImportsCheck = [ "bellows" ];
|
|
|
|
meta = {
|
|
description = "Python module to implement EZSP for EmberZNet devices";
|
|
homepage = "https://github.com/zigpy/bellows";
|
|
changelog = "https://github.com/zigpy/bellows/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ mvnetbiz ];
|
|
mainProgram = "bellows";
|
|
};
|
|
}
|