2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, aiolifx
|
2023-05-24 13:37:59 +00:00
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-11-04 12:27:35 +00:00
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
2022-11-04 12:27:35 +00:00
|
|
|
, typer
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiolifx-themes";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.4.5";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Djelibeybi";
|
|
|
|
repo = "aiolifx-themes";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-df3FQdOa3C8eQfgFi+sh7+/GBpE+4B5gOI+3XDQLHEs=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
# Don't run coverage, or depend on typer for no reason.
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace " --cov=aiolifx_themes --cov-report=term-missing:skip-covered" "" \
|
|
|
|
--replace "typer = " "# unused: typer = "
|
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'aiolifx = "^0.8.6"' 'aiolifx = "*"'
|
|
|
|
'';
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiolifx
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
async-timeout
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiolifx_themes"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Color themes for LIFX lights running on aiolifx";
|
|
|
|
homepage = "https://github.com/Djelibeybi/aiolifx-themes";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/Djelibeybi/aiolifx-themes/releases/tag/v${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lukegb ];
|
|
|
|
};
|
|
|
|
}
|