Merge pull request #175207 from dotlambda/pikepdf-darwin

python310Packages.pikepdf: fix build on aarch64-darwin
This commit is contained in:
Robert Schütz 2022-05-28 20:44:35 -07:00 committed by GitHub
commit b021b30fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, coloredlogs
, fetchFromGitHub
, fetchpatch
, ghostscript
, img2pdf
, importlib-metadata
@ -53,6 +54,11 @@ buildPythonPackage rec {
tesseract = "${lib.getBin tesseract4}/bin/tesseract";
unpaper = "${lib.getBin unpaper}/bin/unpaper";
})
# https://github.com/ocrmypdf/OCRmyPDF/pull/973
(fetchpatch {
url = "https://github.com/ocrmypdf/OCRmyPDF/commit/808b24d59f5b541a335006aa6ea7cdc3c991adc0.patch";
hash = "sha256-khsH70fWk5fStf94wcRKKX7cCbgD69LtKkngJIqA3+w=";
})
];
nativeBuildInputs = [

View File

@ -51,6 +51,10 @@ buildPythonPackage rec {
})
];
postPatch = ''
sed -i 's|\S*/opt/homebrew.*|pass|' setup.py
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
buildInputs = [