python310Packages.jsons: disable failing test on Python 3.11

This commit is contained in:
Fabian Affolter 2023-02-21 13:17:16 +01:00
parent ee1dcddd15
commit 348edf4ff9

View File

@ -3,6 +3,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder , pythonOlder
, typish , typish
, tzdata , tzdata
@ -18,8 +19,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ramonhagenaars"; owner = "ramonhagenaars";
repo = "jsons"; repo = "jsons";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "0sdwc57f3lwzhbcapjdbay9f8rn65rlspxa67a2i5apcgg403qpc"; hash = "sha256-7OIByHvsqhKFOkb1q2kuxmbkkleryavYgp/T4U5hvGk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -38,6 +39,11 @@ buildPythonPackage rec {
"tests/test_performance.py" "tests/test_performance.py"
]; ];
disabledTests = lib.optionals (pythonAtLeast "3.11") [
# https://github.com/ramonhagenaars/jsons/issues/187
"test_dump_load_parameterized_collections"
];
pythonImportsCheck = [ pythonImportsCheck = [
"jsons" "jsons"
]; ];