blob: 7bb2a1150aef8e4651f0605ef469d637ae9b3d2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pydantic,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
websocket-client,
}:
buildPythonPackage rec {
pname = "dirigera";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Leggin";
repo = "dirigera";
rev = "refs/tags/v${version}";
hash = "sha256-JmrKeHypWhqOWO0LpzNe1qyeXuYnMyZoM+2IQbz6WDU=";
};
build-system = [ setuptools ];
dependencies = [
pydantic
requests
websocket-client
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dirigera" ];
meta = with lib; {
description = "Module for controlling the IKEA Dirigera Smart Home Hub";
homepage = "https://github.com/Leggin/dirigera";
changelog = "https://github.com/Leggin/dirigera/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "generate-token";
};
}
|