Robert Schütz
2026-05-30 03:53:12 +02:00
committed by Martin Weinelt
parent 3f544ddd49
commit e03a901005
@@ -2,6 +2,7 @@
lib,
attrs,
buildPythonPackage,
cmake,
fetchFromGitHub,
hypothesis,
jbig2dec,
@@ -9,23 +10,24 @@
lxml,
withMupdf ? false,
mupdf-headless,
nanobind,
ninja,
numpy,
packaging,
pillow,
psutil,
pybind11,
pytest-xdist,
pytestCheckHook,
python-dateutil,
python-xmp-toolkit,
qpdf,
setuptools,
replaceVars,
scikit-build-core,
}:
buildPythonPackage rec {
pname = "pikepdf";
version = "10.5.1";
version = "10.6.0";
pyproject = true;
src = fetchFromGitHub {
@@ -38,7 +40,7 @@ buildPythonPackage rec {
postFetch = ''
rm "$out/.git_archival.txt"
'';
hash = "sha256-x17cRef8rB5UQQws48G/IqeSp4B3CaLzIoUIQ8fJeUg=";
hash = "sha256-COEAY9/H9KZ1Tyj89CFMBl9ydTro82qk1XYWbaI9AFY=";
};
patches = [
@@ -54,18 +56,17 @@ buildPythonPackage rec {
})
];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "shims_enabled = not cflags_defined" "shims_enabled = False"
'';
buildInputs = [ qpdf ];
build-system = [
pybind11
setuptools
cmake
nanobind
ninja
scikit-build-core
];
dontUseCmakeConfigure = true;
nativeCheckInputs = [
attrs
hypothesis