python310Packages.pikepdf 0 -> 1 attrpath: python310Packages.pikepdf Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/5i9czmnx4bbsj9rc0da5hmj3s3cgc7pp-packages.json.drv building '/nix/store/5i9czmnx4bbsj9rc0da5hmj3s3cgc7pp-packages.json.drv'... Going to be running update for following packages: - python3.10-pikepdf-8.4.0 Press Enter key to continue... Running update for: - python3.10-pikepdf-8.4.0: UPDATING ... - python3.10-pikepdf-8.4.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/pikepdf/default.nix b/pkgs/development/python-modules/pikepdf/default.nix index 0891ad28ec3f..d8951db62eb8 100644 --- a/pkgs/development/python-modules/pikepdf/default.nix +++ b/pkgs/development/python-modules/pikepdf/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { pname = "pikepdf"; - version = "8.4.0"; + version = "8.11.1"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -32,14 +32,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pikepdf"; repo = "pikepdf"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; # The content of .git_archival.txt is substituted upon tarball creation, # which creates indeterminism if master no longer points to the tag. # See https://github.com/jbarlow83/OCRmyPDF/issues/841 postFetch = '' rm "$out/.git_archival.txt" ''; - hash = "sha256-48tb5bhmBdKVjMld07303qIi5C16yaf+5TpRPVC6EQk="; + hash = "sha256-NBNkMyvbKA851HWHHZpc7/3yGBTCUuMfleslq1hECXc="; }; patches = [ No auto update branch exists Old version 8.4.0" not present in staging derivation file with contents: { lib , attrs , buildPythonPackage , fetchFromGitHub , hypothesis , pythonOlder , jbig2dec , deprecated , lxml , mupdf , numpy , packaging , pillow , psutil , pybind11 , pytest-xdist , pytestCheckHook , python-dateutil , python-xmp-toolkit , qpdf , setuptools , substituteAll , wheel }: buildPythonPackage rec { pname = "pikepdf"; version = "8.9.0"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "pikepdf"; repo = "pikepdf"; rev = "v${version}"; # The content of .git_archival.txt is substituted upon tarball creation, # which creates indeterminism if master no longer points to the tag. # See https://github.com/jbarlow83/OCRmyPDF/issues/841 postFetch = '' rm "$out/.git_archival.txt" ''; hash = "sha256-ia+D0OeB/MQWRniYkBEWZsDCwEApYGgu0++I/HupK6w="; }; patches = [ (substituteAll { src = ./paths.patch; jbig2dec = "${lib.getBin jbig2dec}/bin/jbig2dec"; mudraw = "${lib.getBin mupdf}/bin/mudraw"; }) ]; postPatch = '' substituteInPlace setup.py \ --replace "shims_enabled = not cflags_defined" "shims_enabled = False" ''; buildInputs = [ qpdf ]; nativeBuildInputs = [ pybind11 setuptools wheel ]; nativeCheckInputs = [ attrs hypothesis numpy pytest-xdist psutil pytestCheckHook python-dateutil python-xmp-toolkit ]; propagatedBuildInputs = [ deprecated lxml packaging pillow ]; pythonImportsCheck = [ "pikepdf" ]; meta = with lib; { homepage = "https://github.com/pikepdf/pikepdf"; description = "Read and write PDFs with Python, powered by qpdf"; license = licenses.mpl20; maintainers = with maintainers; [ kiwi dotlambda ]; changelog = "https://github.com/pikepdf/pikepdf/blob/${src.rev}/docs/releasenotes/version${lib.versions.major version}.rst"; }; }