Files
nixpkgs/pkgs/development/python-modules/gardena-bluetooth/default.nix
2026-05-06 18:05:54 +00:00

53 lines
1.0 KiB
Nix

{
lib,
asyncclick,
bleak-retry-connector,
bleak,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
setuptools,
tzlocal,
}:
buildPythonPackage (finalAttrs: {
pname = "gardena-bluetooth";
version = "2.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "elupus";
repo = "gardena-bluetooth";
tag = finalAttrs.version;
hash = "sha256-yl1I36p21lemKigijqks7cwOxWej+35bDB2D0KO3pa0=";
};
build-system = [ setuptools ];
dependencies = [
bleak
bleak-retry-connector
tzlocal
];
optional-dependencies = {
cli = [ asyncclick ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [ "gardena_bluetooth" ];
meta = {
description = "Module for interacting with Gardena Bluetooth";
homepage = "https://github.com/elupus/gardena-bluetooth";
changelog = "https://github.com/elupus/gardena-bluetooth/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})