Files
2026-08-12 04:03:14 +00:00

57 lines
1.1 KiB
Nix

{
lib,
asyncclick,
bleak-retry-connector,
bleak,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
tzlocal,
uv-dynamic-versioning,
}:
buildPythonPackage (finalAttrs: {
pname = "gardena-bluetooth";
version = "2.10.1";
pyproject = true;
src = fetchFromGitHub {
owner = "elupus";
repo = "gardena-bluetooth";
tag = finalAttrs.version;
hash = "sha256-7f+2EpjG5Ea4kWvhFP+UWxgYvOM/V3B4ZBMAfvZpRLw=";
};
build-system = [
hatchling
uv-dynamic-versioning
];
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 ];
};
})