mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
5570c265ac
Diff: https://github.com/Djelibeybi/aiolifx-themes/compare/refs/tags/v0.4.8...v0.4.9 Changelog: https://github.com/Djelibeybi/aiolifx-themes/releases/tag/v0.4.9
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{ lib
|
|
, aiolifx
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, typer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiolifx-themes";
|
|
version = "0.4.9";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Djelibeybi";
|
|
repo = "aiolifx-themes";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-8t0yRia/grSSEqySV57QoB3lgU9iwqiVOvVLE5Jd2pM=";
|
|
};
|
|
|
|
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 = "
|
|
'';
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'aiolifx = "^0.8.6"' 'aiolifx = "*"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiolifx
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
changelog = "https://github.com/Djelibeybi/aiolifx-themes/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lukegb ];
|
|
};
|
|
}
|