1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, bleak
6, pyyaml
7, voluptuous
8, pytestCheckHook
9, pytest-asyncio
10, poetry-core
11}:
12
13buildPythonPackage rec {
14 pname = "idasen";
15 version = "0.10.3";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "newAM";
22 repo = "idasen";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-mAczHrFEH1LEH1IEUc7ZXTWtaPBrvIdSvkUqOCupyRs=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 bleak
33 pyyaml
34 voluptuous
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-asyncio
40 ];
41
42 pythonImportsCheck = [
43 "idasen"
44 ];
45
46 meta = with lib; {
47 description = "Python API and CLI for the ikea IDÅSEN desk";
48 homepage = "https://github.com/newAM/idasen";
49 changelog = "https://github.com/newAM/idasen/blob/v${version}/CHANGELOG.md";
50 license = licenses.mit;
51 maintainers = with maintainers; [ newam ];
52 };
53}