nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 asyncclick,
4 bleak,
5 bleak-retry-connector,
6 buildPythonPackage,
7 fetchFromGitHub,
8 poetry-core,
9 pytest-asyncio,
10 pytestCheckHook,
11 tzlocal,
12}:
13
14buildPythonPackage rec {
15 pname = "gardena-bluetooth";
16 version = "1.6.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "elupus";
21 repo = "gardena-bluetooth";
22 tag = version;
23 hash = "sha256-L726A0o9TIxFjHOxx0e42RIj4XMOdeZTJE2gWo6OhG4=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 bleak
30 bleak-retry-connector
31 tzlocal
32 ];
33
34 optional-dependencies = {
35 cli = [ asyncclick ];
36 };
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-asyncio
41 ];
42
43 pythonImportsCheck = [ "gardena_bluetooth" ];
44
45 meta = {
46 description = "Module for interacting with Gardena Bluetooth";
47 homepage = "https://github.com/elupus/gardena-bluetooth";
48 changelog = "https://github.com/elupus/gardena-bluetooth/releases/tag/${version}";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ fab ];
51 };
52}