python313Packages.parameterized: fix tests

Kudos to the Gentoo folks for the patch.
This commit is contained in:
Martin Weinelt
2024-11-18 18:36:43 +01:00
parent 78dd50f7a2
commit d390c9ee82
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
mock,
pytestCheckHook,
pythonOlder,
@@ -20,6 +21,14 @@ buildPythonPackage rec {
hash = "sha256-f8kFJyzvpPNkwaNCnLvpwPmLeTmI77W/kKrIDwjbCbE=";
};
patches = [
(fetchpatch2 {
name = "parameterized-docstring-3.13-compat.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/parameterized/files/parameterized-0.9.0-py313-test.patch";
hash = "sha256-tWcN0eRC0oRHrOaa/cctXLhi1WapDKvxO36e6gU6UIk=";
})
];
postPatch = ''
# broken with pytest 7 and python 3.12
# https://github.com/wolever/parameterized/issues/167