From 60058e0a17e557098217fd6897451e08fd96cc78 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 27 Oct 2022 19:32:43 +0000 Subject: [PATCH 1/2] python310Packages.aiolifx-effects: 0.2.2 -> 0.3.0 --- pkgs/development/python-modules/aiolifx-effects/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiolifx-effects/default.nix b/pkgs/development/python-modules/aiolifx-effects/default.nix index 201fdb32a0be..5702aa0254ac 100644 --- a/pkgs/development/python-modules/aiolifx-effects/default.nix +++ b/pkgs/development/python-modules/aiolifx-effects/default.nix @@ -7,13 +7,13 @@ buildPythonPackage rec { pname = "aiolifx-effects"; - version = "0.2.2"; + version = "0.3.0"; disabled = !isPy3k; src = fetchPypi { inherit version; pname = "aiolifx_effects"; - sha256 = "sha256-qkXJDYdJ+QyQWn/u7g6t4QJG1uSqle+a5RhTkPPsHKo="; + sha256 = "sha256-6mFsQMrsEMhO9drsMMRhv8QY+eDPuskpJyazx3vG7Ko="; }; propagatedBuildInputs = [ aiolifx ]; From 44a9790227d0add9a2378c51b04ac332ee795b4f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 27 Oct 2022 22:35:40 +0200 Subject: [PATCH 2/2] python310Packages.aiolifx-effects: disable on older Python releases --- .../python-modules/aiolifx-effects/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiolifx-effects/default.nix b/pkgs/development/python-modules/aiolifx-effects/default.nix index 5702aa0254ac..71df3079b797 100644 --- a/pkgs/development/python-modules/aiolifx-effects/default.nix +++ b/pkgs/development/python-modules/aiolifx-effects/default.nix @@ -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 ]; }; }