2021-06-20 16:30:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, bleak
|
|
|
|
, pyyaml
|
|
|
|
, voluptuous
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, poetry-core
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "idasen";
|
2022-01-11 16:42:01 +00:00
|
|
|
version = "0.8.2";
|
2021-06-20 16:30:36 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "newAM";
|
|
|
|
repo = "idasen";
|
|
|
|
rev = "v${version}";
|
2022-01-11 16:42:01 +00:00
|
|
|
sha256 = "sha256-s8CnYMUVl2VbGbVxICSaKH5DxTA+NP/zPX1z7vfMqi4=";
|
2021-06-20 16:30:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bleak
|
|
|
|
pyyaml
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "idasen" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API and CLI for the ikea IDÅSEN desk";
|
|
|
|
homepage = "https://github.com/newAM/idasen";
|
2021-10-21 01:05:38 +00:00
|
|
|
changelog = "https://github.com/newAM/idasen/blob/v${version}/CHANGELOG.md";
|
2021-06-20 16:30:36 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ newam ];
|
|
|
|
};
|
|
|
|
}
|