python310Packages.aiolifx-effects: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-10-27 22:35:40 +02:00 committed by GitHub
parent 60058e0a17
commit 44a9790227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,32 +1,38 @@
{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
, pythonOlder
, aiolifx
}:
buildPythonPackage rec {
pname = "aiolifx-effects";
version = "0.3.0";
disabled = !isPy3k;
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit version;
pname = "aiolifx_effects";
sha256 = "sha256-6mFsQMrsEMhO9drsMMRhv8QY+eDPuskpJyazx3vG7Ko=";
hash = "sha256-6mFsQMrsEMhO9drsMMRhv8QY+eDPuskpJyazx3vG7Ko=";
};
propagatedBuildInputs = [ aiolifx ];
propagatedBuildInputs = [
aiolifx
];
# tests are not implemented
doCheck = false;
pythonImportsCheck = [ "aiolifx_effects" ];
pythonImportsCheck = [
"aiolifx_effects"
];
meta = with lib; {
description = "Light effects (pulse, colorloop ...) for LIFX lights running on aiolifx";
homepage = "https://github.com/amelchio/aiolifx_effects";
license = licenses.mit;
description = "Light effects (pulse, colorloop ...) for LIFX lights running on aiolifx";
maintainers = with maintainers; [ netixx ];
};
}