From 0cd08cff360ff859df792ded15a48f0aa9566fda Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 6 Aug 2025 16:45:04 +0200 Subject: [PATCH] Revert "python3Packages.click: 8.1.8 -> 8.2.2" This reverts commit ab14a5defe0b15296f6abd1dbf4f8328472ceaea. Backed out due to breakages in click-repl, which breaks celery. --- .../python-modules/click/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/click/default.nix b/pkgs/development/python-modules/click/default.nix index 28d22e503e90..ec105f1ef7d5 100644 --- a/pkgs/development/python-modules/click/default.nix +++ b/pkgs/development/python-modules/click/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, pythonOlder, fetchFromGitHub, + importlib-metadata, pytestCheckHook, # large-rebuild downstream dependencies and applications @@ -16,28 +17,26 @@ buildPythonPackage rec { pname = "click"; - version = "8.2.2"; + version = "8.1.8"; pyproject = true; - disabled = pythonOlder "3.10"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "pallets"; repo = "click"; tag = version; - hash = "sha256-cBvibVZKCppFJiRS8MNc3YT1JxmlXhRci7LHsrd4JGs="; + hash = "sha256-pAAqf8jZbDfVZUoltwIFpov/1ys6HSYMyw3WV2qcE/M="; }; build-system = [ flit-core ]; + dependencies = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ - # for some reason the tests fail to execute cat, even though they run with less just fine, - # even adding coreutils to nativeCheckInputs explicitly does not change anything - "test_echo_via_pager" + # test fails with filename normalization on zfs + "test_file_surrogates" ]; passthru.tests = {