620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
51 lines
951 B
Nix
51 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, bleak
|
|
, pyyaml
|
|
, voluptuous
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, poetry-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "idasen";
|
|
version = "0.8.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "newAM";
|
|
repo = "idasen";
|
|
rev = "v${version}";
|
|
sha256 = "122bhbc3zqqm4x1x7a7mydvxxjrdssnqyxyqg0lbgxgn5rm8wbdd";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/newAM/idasen/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ newam ];
|
|
};
|
|
}
|