commit:     fb06f1f261405be1be2472d70510db920fd0353a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  2 05:06:25 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan  2 05:06:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb06f1f2

dev-python/pikepdf: Bump to 9.5.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pikepdf/Manifest             |  1 +
 dev-python/pikepdf/pikepdf-9.5.0.ebuild | 74 +++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest
index 84f499dd59fb..83c8a246d9b5 100644
--- a/dev-python/pikepdf/Manifest
+++ b/dev-python/pikepdf/Manifest
@@ -2,3 +2,4 @@ DIST pikepdf-9.1.1.tar.gz 2869514 BLAKE2B 
b196a61d599db1355695d40ac69e09ea7a020c
 DIST pikepdf-9.1.2.tar.gz 2869865 BLAKE2B 
74b64d628f12a5335a9dfbe2e15fbbd0a39e266100bcc8b33e94c954aab91150f46649b181bf049cd1084a6d2412ea9485cc57d4d6a23a4678a5ea55ebbb7357
 SHA512 
676d68f05a506b6aa69e1b01d03164de6731d17b48d2cd4b123221ebe27aef04a75d458c897c53d504a0b3aa7d0bc3e78aaf707a3cfdcdf8d31ee5e537188bd3
 DIST pikepdf-9.3.0.tar.gz 2905550 BLAKE2B 
62b3a1d655fb5b3e4d315a3feaeb14a043048c5985f5cf99812c07e1d248ae52cb1734dbd091103f36a3fd5a981c89b57208fb50f5c1081e08e3c20ec728ff9c
 SHA512 
3325ab06c285f8f51c66c3815b15f96b0730e38f8023ce5c1e46818c581c38ab3bd89875e5de6ce1064a5929a8c386740d76e662c82d00d9c46961c56da4f0c0
 DIST pikepdf-9.4.2.tar.gz 2914992 BLAKE2B 
daed44bd1106dbeadef449160e2ba5b389a1eeb7b23a32124a59b7861c1584d49feca01d6f54a18dc53eaace7823b23f62c1240c58445eb382ee25133b2d463b
 SHA512 
2dc84672941a283da5486b2664252b6cd0612d7d2f9e8d10e3ae41f494be89821431568872b6b60045ffb2f1f687cea055093229ee443997997a8fae56e43e0b
+DIST pikepdf-9.5.0.tar.gz 2916148 BLAKE2B 
ad6d15fe9a6b9e44a4e1f6486a2e060311155292413453d99c52cf2d98f0fe7fdec823cc472282be5efaed7ccd3ad674cb5a5da8caab622d0f740e93b8ea5cc0
 SHA512 
6b73343fc6f93168059c106aa344b73f483802a2d222fbd5d16daffebe87c887ad2d757874856f4c6f776c39f78b3fe33e985abba80f0318cc65e69aaa369143

diff --git a/dev-python/pikepdf/pikepdf-9.5.0.ebuild 
b/dev-python/pikepdf/pikepdf-9.5.0.ebuild
new file mode 100644
index 000000000000..3bd9cbda965f
--- /dev/null
+++ b/dev-python/pikepdf/pikepdf-9.5.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python library to work with pdf files based on qpdf"
+HOMEPAGE="
+       https://github.com/pikepdf/pikepdf/
+       https://pypi.org/project/pikepdf/
+"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86"
+IUSE="big-endian"
+
+# Check QPDF_MIN_VERSION in pyproject.toml on bumps, as well as
+# https://qpdf.readthedocs.io/en/stable/release-notes.html.
+DEPEND="
+       >=app-text/qpdf-11.5.0:0=
+"
+RDEPEND="
+       ${DEPEND}
+       dev-python/deprecated[${PYTHON_USEDEP}]
+       >=dev-python/lxml-4.0[${PYTHON_USEDEP}]
+       dev-python/packaging[${PYTHON_USEDEP}]
+       >=dev-python/pillow-10.0.1[lcms,${PYTHON_USEDEP}]
+"
+BDEPEND="
+       >=dev-python/pybind11-2.12.0[${PYTHON_USEDEP}]
+       >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
+       test? (
+               >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
+               >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}]
+               >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}]
+               >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
+               >=dev-python/psutil-5.9[${PYTHON_USEDEP}]
+               >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
+               >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
+               !big-endian? (
+                       >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
+               )
+               $(python_gen_cond_dep '
+                       dev-python/tomli[${PYTHON_USEDEP}]
+               ' 3.10)
+               media-libs/tiff[zlib]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       sed -e '/-n auto/d' -i pyproject.toml || die
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # fragile to system load
+               tests/test_image_access.py::test_random_image
+               tests/test_image_access.py::test_image_save_compare
+               tests/test_image_access.py::test_palette_nonrgb
+       )
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -p timeout
+}

Reply via email to