33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
53 lines
960 B
Nix
53 lines
960 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, bleak
|
|
, pyyaml
|
|
, voluptuous
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, poetry-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "idasen";
|
|
version = "0.9.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "newAM";
|
|
repo = "idasen";
|
|
rev = "v${version}";
|
|
hash = "sha256-GYQj7hiwyrCQDK19tZ7gN/pS1mFDSHgRfz7eCsKise4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|