Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pikepdf/
Date: Wed, 07 Apr 2021 23:11:34
Message-Id: 1617837081.01891865375410742d187aa58e32a5381f02f917.mgorny@gentoo
1 commit: 01891865375410742d187aa58e32a5381f02f917
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 7 22:39:31 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 7 23:11:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01891865
7
8 dev-python/pikepdf: Bump to 2.11.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pikepdf/Manifest | 1 +
13 dev-python/pikepdf/pikepdf-2.11.0.ebuild | 51 ++++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest
17 index fe2945bc26e..8c74b345ecb 100644
18 --- a/dev-python/pikepdf/Manifest
19 +++ b/dev-python/pikepdf/Manifest
20 @@ -1 +1,2 @@
21 DIST pikepdf-2.10.0.tar.gz 2376794 BLAKE2B c9f85ddec15a7eaef2ed3c43221196d957dc5d8d03aa9931886d52653efa238d6d847862e2610edcfca85cd2ad0746f2f0ae78e70ecd6666cc1a37b4f6644dd2 SHA512 d2a8ecd91ef4ae8c16b5e6fcd7149a1180d6c7c1f16c262566d7d43f82d25a6701676511c8327b265cf0ac2bfc6db29b43c4713e4b51651fdb5f680449a53af0
22 +DIST pikepdf-2.11.0.tar.gz 2382340 BLAKE2B 60a09d1b7f463720af17be4b3ac70fd575f01f0e4f27b87723fddf18424d97fddc6f11de59bb1a061496f9d847babfcf3446d3bbd7445dea56106879a2ff31a3 SHA512 d55c10799667a142ed651ab36de01011abad0ae95c3dc267871147deb458e0930aba6fd5c3a20487641f2d8fa60d7b15f6ba40cbb2370bc13ef418ce3b300233
23
24 diff --git a/dev-python/pikepdf/pikepdf-2.11.0.ebuild b/dev-python/pikepdf/pikepdf-2.11.0.ebuild
25 new file mode 100644
26 index 00000000000..2a76869d388
27 --- /dev/null
28 +++ b/dev-python/pikepdf/pikepdf-2.11.0.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7..9} )
35 +inherit distutils-r1
36 +
37 +MY_P=${P/_p/.post}
38 +DESCRIPTION="Python library to work with pdf files based on qpdf"
39 +HOMEPAGE="https://pypi.org/project/pikepdf/ https://github.com/pikepdf/pikepdf"
40 +SRC_URI="
41 + https://github.com/${PN}/${PN}/archive/v${PV/_p/.post}.tar.gz
42 + -> ${MY_P}.tar.gz"
43 +S=${WORKDIR}/${MY_P}
44 +
45 +LICENSE="MPL-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +DEPEND="app-text/qpdf:0="
50 +RDEPEND="${DEPEND}
51 + dev-python/pillow[${PYTHON_USEDEP}]
52 + dev-python/lxml[${PYTHON_USEDEP}]
53 + dev-python/pybind11[${PYTHON_USEDEP}]"
54 +BDEPEND="
55 + >=dev-python/pybind11-2.6.0[${PYTHON_USEDEP}]
56 + >=dev-python/setuptools_scm-4.1[${PYTHON_USEDEP}]
57 + dev-python/toml[${PYTHON_USEDEP}]
58 + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]
59 + test? (
60 + >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}]
61 + >=dev-python/hypothesis-5[${PYTHON_USEDEP}]
62 + >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff]
63 + >=dev-python/psutil-5[${PYTHON_USEDEP}]
64 + >=dev-python/pytest-6[${PYTHON_USEDEP}]
65 + >=dev-python/pytest-timeout-1.4.2[${PYTHON_USEDEP}]
66 + >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}]
67 + >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
68 + )"
69 +
70 +#distutils_enable_sphinx docs \
71 +# dev-python/ipython \
72 +# dev-python/matplotlib \
73 +# dev-python/sphinx_rtd_theme
74 +distutils_enable_tests pytest
75 +
76 +src_prepare() {
77 + sed -i -e '/wheel/d' setup.py || die
78 + sed -i -e '/-n auto/d' setup.cfg || die
79 + distutils-r1_src_prepare
80 +}