nixpkgs-suyu/pkgs/development/python-modules/idasen/default.nix
2023-08-24 18:45:11 -07:00

53 lines
971 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, bleak
, pyyaml
, voluptuous
, pytestCheckHook
, pytest-asyncio
, poetry-core
}:
buildPythonPackage rec {
pname = "idasen";
version = "0.10.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "newAM";
repo = "idasen";
rev = "refs/tags/v${version}";
hash = "sha256-aCVKnKWJlrlKD+74KL9JKlNpMGOzg/iWmB+1IMn0V/E=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bleak
pyyaml
voluptuous
];
nativeCheckInputs = [
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 ];
};
}