0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 22:20:30 +03:00

python313Packages.parameterized: fix tests

Kudos to the Gentoo folks for the patch.
This commit is contained in:
Martin Weinelt 2024-10-28 15:32:41 +01:00
parent 78dd50f7a2
commit d390c9ee82
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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