From 348edf4ff97648e7e6ac75c3b887132b7e91e210 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Feb 2023 13:17:16 +0100 Subject: [PATCH] python310Packages.jsons: disable failing test on Python 3.11 --- pkgs/development/python-modules/jsons/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/jsons/default.nix b/pkgs/development/python-modules/jsons/default.nix index 416ab8d9cbc5..9a5116c94d6a 100644 --- a/pkgs/development/python-modules/jsons/default.nix +++ b/pkgs/development/python-modules/jsons/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonAtLeast , pythonOlder , typish , tzdata @@ -18,8 +19,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ramonhagenaars"; repo = "jsons"; - rev = "v${version}"; - sha256 = "0sdwc57f3lwzhbcapjdbay9f8rn65rlspxa67a2i5apcgg403qpc"; + rev = "refs/tags/v${version}"; + hash = "sha256-7OIByHvsqhKFOkb1q2kuxmbkkleryavYgp/T4U5hvGk="; }; propagatedBuildInputs = [ @@ -38,6 +39,11 @@ buildPythonPackage rec { "tests/test_performance.py" ]; + disabledTests = lib.optionals (pythonAtLeast "3.11") [ + # https://github.com/ramonhagenaars/jsons/issues/187 + "test_dump_load_parameterized_collections" + ]; + pythonImportsCheck = [ "jsons" ];