Merge pull request #175207 from dotlambda/pikepdf-darwin
python310Packages.pikepdf: fix build on aarch64-darwin
This commit is contained in:
commit
b021b30fa3
2 changed files with 10 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
|
@ -51,6 +51,10 @@ buildPythonPackage rec {
|
|||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's|\S*/opt/homebrew.*|pass|' setup.py
|
||||
'';
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
buildInputs = [
|
||||
|
|
Loading…
Reference in a new issue