python3Packages.reportlab: ignore special casing for m1 macs

This commit is contained in:
Martin Weinelt 2022-09-16 14:28:24 +02:00
parent 67d138a0c8
commit 05beb70eb2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 7625074..b3aa2fc 100644
--- a/setup.py
+++ b/setup.py
@@ -249,7 +249,7 @@ class inc_lib_dirs:
aDir(L, os.path.join("/usr/lib", "python%s" % sys.version[:3], "config"))
elif platform == "darwin":
machine = sysconfig_platform.split('-')[-1]
- if machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
+ if False and machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
#print('!!!!! detected darwin arm64 build')
#probably an M1
target = pjoin(

View File

@ -19,6 +19,10 @@ in buildPythonPackage rec {
sha256 = "sha256-BPxEIPBUiBXQYj4DHIah9/PzAD5pnZr3FIdC4tcrAko=";
};
patches = [
./darwin-m1-compat.patch
];
checkInputs = [ glibcLocales ];
buildInputs = [ ft pillow ];