Files
nixpkgs/pkgs/development/python-modules/idasen/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
969 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
bleak,
pyyaml,
voluptuous,
pytestCheckHook,
pytest-asyncio,
poetry-core,
}:
buildPythonPackage rec {
pname = "idasen";
version = "0.12.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "newAM";
repo = "idasen";
tag = "v${version}";
hash = "sha256-TQ+DBFpG+IeZ4/dN+YKMw3AM4Dl1rpqA1kRcb3Tb3jA=";
};
build-system = [ poetry-core ];
dependencies = [
bleak
pyyaml
voluptuous
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [ "idasen" ];
meta = {
description = "Python API and CLI for the ikea IDÅSEN desk";
mainProgram = "idasen";
homepage = "https://github.com/newAM/idasen";
changelog = "https://github.com/newAM/idasen/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ newam ];
};
}