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.8.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 = "122bhbc3zqqm4x1x7a7mydvxxjrdssnqyxyqg0lbgxgn5rm8wbdd"; 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 changelog = "https://github.com/newAM/idasen/blob/v${version}/CHANGELOG.md"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ newam ]; 50 }; 51}