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