depot/third_party/nixpkgs/pkgs/development/python-modules/aiolifx-themes/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

54 lines
1.2 KiB
Nix

{
lib,
aiolifx,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
typer,
}:
buildPythonPackage rec {
pname = "aiolifx-themes";
version = "0.4.17";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Djelibeybi";
repo = "aiolifx-themes";
rev = "refs/tags/v${version}";
hash = "sha256-nKzvdDzwizF1Db8qFQuOH7gLnYHmdCYdQZPN+gNg8mU=";
};
prePatch = ''
# Don't run coverage, or depend on typer for no reason.
substituteInPlace pyproject.toml \
--replace-fail " --cov=aiolifx_themes --cov-report=term-missing:skip-covered" "" \
--replace-fail "typer = " "# unused: typer = "
'';
build-system = [ poetry-core ];
dependencies = [ 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 ];
};
}