python3Packages.cffi: Apply patches for pytest 7.2.0 compat

This commit is contained in:
Martin Weinelt 2022-12-29 15:12:14 +01:00
parent b9b5367623
commit af8b9c216b

View File

@ -32,6 +32,24 @@ if isPyPy then null else buildPythonPackage rec {
# deemed safe to trust in cffi. # deemed safe to trust in cffi.
# #
./darwin-use-libffi-closures.diff ./darwin-use-libffi-closures.diff
(fetchpatch {
# Drop py.code usage from tests, no longer depend on the deprecated py package
url = "https://foss.heptapod.net/pypy/cffi/-/commit/9c7d865e17ec16a847090a3e0d1498b698b99756.patch";
excludes = [
"README.md"
"requirements.txt"
];
hash = "sha256-HSuLLIYXXGGCPccMNLV7o1G3ppn2P0FGCrPjqDv2e7k=";
})
(fetchpatch {
# Replace py.test usage with pytest
url = "https://foss.heptapod.net/pypy/cffi/-/commit/bd02e1b122612baa74a126e428bacebc7889e897.patch";
excludes = [
"README.md"
"requirements.txt"
];
hash = "sha256-+2daRTvxtyrCPimOEAmVbiVm1Bso9hxGbaAbd03E+ws=";
})
] ++ lib.optionals (pythonAtLeast "3.11") [ ] ++ lib.optionals (pythonAtLeast "3.11") [
# Fix test that failed because python seems to have changed the exception format in the # Fix test that failed because python seems to have changed the exception format in the
# final release. This patch should be included in the next version and can be removed when # final release. This patch should be included in the next version and can be removed when