python313Packages.flux-led: 1.0.4 -> 1.1.0

https://github.com/Danielhiversen/flux_led/releases/tag/1.1.0
This commit is contained in:
Martin Weinelt
2025-01-05 02:56:48 +01:00
parent de60ba3641
commit c8e4487d71
@@ -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";