python313Packages.cffi: fix build
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
buildPythonPackage,
|
||||
isPyPy,
|
||||
fetchPypi,
|
||||
fetchpatch2,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
libffi,
|
||||
@@ -38,6 +39,19 @@ else
|
||||
# deemed safe to trust in cffi.
|
||||
#
|
||||
./darwin-use-libffi-closures.diff
|
||||
|
||||
(fetchpatch2 {
|
||||
# https://github.com/python-cffi/cffi/pull/34
|
||||
name = "python-3.13-compat-1.patch";
|
||||
url = "https://github.com/python-cffi/cffi/commit/49127c6929bfc7186fbfd3819dd5e058ad888de4.patch";
|
||||
hash = "sha256-RbspsjwDf4uwJxMqG0JZGvipd7/JqXJ2uVB7PO4Qcms=";
|
||||
})
|
||||
(fetchpatch2 {
|
||||
# https://github.com/python-cffi/cffi/pull/24
|
||||
name = "python-3.13-compat-2.patch";
|
||||
url = "https://github.com/python-cffi/cffi/commit/14723b0bbd127790c450945099db31018d80fa83.patch";
|
||||
hash = "sha256-H5rFgRRTr27l5S6REo8+7dmPDQW7WXhP4f4DGZjdi+s=";
|
||||
})
|
||||
]
|
||||
++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion stdenv.cc) "13") [
|
||||
# -Wnull-pointer-subtraction is enabled with -Wextra. Suppress it to allow the following tests
|
||||
|
||||
Reference in New Issue
Block a user