mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
python3Packages.aiolifx-themes: init at v0.2.0
This commit is contained in:
parent
35b0503fec
commit
69cf4149ab
58
pkgs/development/python-modules/aiolifx-themes/default.nix
Normal file
58
pkgs/development/python-modules/aiolifx-themes/default.nix
Normal file
@ -0,0 +1,58 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, aiolifx
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, async-timeout
|
||||
, typer
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiolifx-themes";
|
||||
version = "0.2.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Djelibeybi";
|
||||
repo = "aiolifx-themes";
|
||||
rev = "v${version}";
|
||||
hash = "sha256:17498vdg8i20hk4i8hzc67qaj206ik3s1zn1k70plsjr9zlgs6vz";
|
||||
};
|
||||
|
||||
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 = "
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiolifx
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lukegb ];
|
||||
};
|
||||
}
|
@ -238,6 +238,8 @@ self: super: with self; {
|
||||
|
||||
aiolifx-effects = callPackage ../development/python-modules/aiolifx-effects { };
|
||||
|
||||
aiolifx-themes = callPackage ../development/python-modules/aiolifx-themes { };
|
||||
|
||||
aiolimiter = callPackage ../development/python-modules/aiolimiter { };
|
||||
|
||||
aiolip = callPackage ../development/python-modules/aiolip { };
|
||||
|
Loading…
Reference in New Issue
Block a user