python310Packages.pikepdf: 5.1.3 -> 5.1.4

https://github.com/pikepdf/pikepdf/blob/v5.1.4/docs/releasenotes/version5.rst
This commit is contained in:
Robert Schütz 2022-06-09 17:11:49 +00:00 committed by Robert Schütz
parent 908fed8f7f
commit c55d70a21a

View File

@ -1,14 +1,13 @@
{ lib
, attrs
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, hypothesis
, pythonOlder
, importlib-metadata
, jbig2dec
, lxml
, mupdf
, packaging
, pillow
, psutil
, pybind11
@ -17,15 +16,13 @@
, python-dateutil
, python-xmp-toolkit
, qpdf
, setuptools
, setuptools-scm
, setuptools-scm-git-archive
, substituteAll
}:
buildPythonPackage rec {
pname = "pikepdf";
version = "5.1.3";
version = "5.1.4";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -40,7 +37,7 @@ buildPythonPackage rec {
postFetch = ''
rm "$out/.git_archival.txt"
'';
hash = "sha256-jkAwc1bQ1jRDf/qY+xAjiLXXO98qKjyX+J7Lu4tYWoI=";
hash = "sha256-nCzG1QYwERKo/T16hEGIG//PwSrpWRmKLXdj42WGyls=";
};
patches = [
@ -53,6 +50,9 @@ buildPythonPackage rec {
postPatch = ''
sed -i 's|\S*/opt/homebrew.*|pass|' setup.py
substituteInPlace setup.py \
--replace setuptools_scm_git_archive ""
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -63,7 +63,6 @@ buildPythonPackage rec {
];
nativeBuildInputs = [
setuptools-scm-git-archive
setuptools-scm
];
@ -78,11 +77,10 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
defusedxml
lxml
packaging
pillow
setuptools
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
pythonImportsCheck = [ "pikepdf" ];
@ -92,6 +90,6 @@ buildPythonPackage rec {
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/${version}/docs/release_notes.rst";
changelog = "https://github.com/pikepdf/pikepdf/blob/${src.rev}/docs/releasenotes/version${lib.versions.major version}.rst";
};
}