From c8e4487d71842f998b2104d55643474e8686cff1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jan 2025 01:09:01 +0100 Subject: [PATCH] python313Packages.flux-led: 1.0.4 -> 1.1.0 https://github.com/Danielhiversen/flux_led/releases/tag/1.1.0 --- .../python-modules/flux-led/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/flux-led/default.nix b/pkgs/development/python-modules/flux-led/default.nix index 905c597a8459..244d0dfdf42e 100644 --- a/pkgs/development/python-modules/flux-led/default.nix +++ b/pkgs/development/python-modules/flux-led/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "flux-led"; - version = "1.0.4"; + version = "1.1.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -20,18 +20,12 @@ buildPythonPackage rec { owner = "Danielhiversen"; repo = "flux_led"; tag = version; - hash = "sha256-enYo2hZ1C8jqO+8xZhSmIOJQAyrtVUJ9S/e2Bxzhv0I="; + hash = "sha256-7gWqlb2PNRI50Xe8lv2Kim7wUYVzuQMa4BAbg2a7NvM="; }; postPatch = '' substituteInPlace setup.py \ --replace-fail '"pytest-runner>=5.2",' "" - # webcolors API change, https://github.com/Danielhiversen/flux_led/issues/401 - substituteInPlace flux_led/utils.py \ - --replace-fail "CSS2_HEX_TO_NAMES.values()" 'names("css2")' \ - --replace-fail "CSS21_HEX_TO_NAMES.values()" 'names("css21")' \ - --replace-fail "CSS3_HEX_TO_NAMES.values()" 'names("css3")' \ - --replace-fail "HTML4_HEX_TO_NAMES.values()" 'names("html4")' ''; build-system = [ setuptools ]; @@ -47,11 +41,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "flux_led" ]; - # disabledTests = [ - # # AttributeError: module 'webcolors' has no attribute 'CSS2_HEX_TO_NAMES' - # "test_get_color_names_list" - # ]; - meta = with lib; { description = "Python library to communicate with the flux_led smart bulbs"; homepage = "https://github.com/Danielhiversen/flux_led";