Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyPDF2/
Date: Sun, 07 Aug 2022 19:22:13
Message-Id: 1659900094.c673d0595de6baa2c8b049190c4737ecdc4f93bf.arthurzam@gentoo
1 commit: c673d0595de6baa2c8b049190c4737ecdc4f93bf
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 7 18:48:47 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 7 19:21:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c673d059
7
8 dev-python/PyPDF2: add 2.10.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/PyPDF2/Manifest | 1 +
13 dev-python/PyPDF2/PyPDF2-2.10.0.ebuild | 131 +++++++++++++++++++++++++++++++++
14 2 files changed, 132 insertions(+)
15
16 diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest
17 index a65fd600e5b4..96379f551a46 100644
18 --- a/dev-python/PyPDF2/Manifest
19 +++ b/dev-python/PyPDF2/Manifest
20 @@ -1,3 +1,4 @@
21 +DIST PyPDF2-2.10.0.gh.tar.gz 6355180 BLAKE2B 1070e4989609cb1361f966f06a23a972ba0f53d6d02d2f489104a7198111d4e80573e2a54d7446bd85ccc8270ad8cb592c2131f0ba1433b3c1ca246bcd39c466 SHA512 dfc543a9cbc4c4e185abc928a64a8aeb5c69d833d3af0983bc994bb6a62b65732a6ea0a7b260bca4de8854639c0a03e0cc6398a5d9ec4df9125ccf7e4b3b264d
22 DIST PyPDF2-2.4.1.gh.tar.gz 5121207 BLAKE2B 387085ea028d7fcbcfd5fa4e5373b655e647548093638db66fa92d44b8771bb5342f8086ebca82e205cf56f1865778bc604f49a49b39af16d8d9e3466a51653d SHA512 430e73ee6965fd6b8dac9ce8b6ee232e8ea829a7dbdfe87aafd29ae24ab182cd3e568b447030a0c199aab9049a79ce2a5518ce7fe59b1d8ce533b1313a568fc2
23 DIST PyPDF2-2.4.2.gh.tar.gz 5327738 BLAKE2B 5343d5b7c2efe2ed664f896b030a60ad8570ae8f481376e4ad9c865144b66d912633e4f83294d7f6399230963c02dea262cc247b10ca3c146ab24f823c0d57f3 SHA512 84a13d5b624ca8ca2dc4c474309ffa47d1770e1681ccb527f7fc1df37698037c224939dd062da004cbf7b983744afd3ab9adc9a610bea3f2f297e1ed5b708dd2
24 DIST PyPDF2-2.5.0.gh.tar.gz 5597332 BLAKE2B 40d4fa812f1a70c18d3b2907d83185cd79af3d722e762ec8dec9709cb5c70246c21fa124e419d8b12142b0ae22b1f13958835eaaa23e9f4cc9efbd05793db7ce SHA512 ec7560b4bb3737fe4c830f058f5303cb70c9ff660c3f40637b4b86c8c79bf11a246a3fcc425aa54b5ca160548311c7f93248a1001c75a7e1dbf3119245e3262f
25
26 diff --git a/dev-python/PyPDF2/PyPDF2-2.10.0.ebuild b/dev-python/PyPDF2/PyPDF2-2.10.0.ebuild
27 new file mode 100644
28 index 000000000000..db21f89a85ae
29 --- /dev/null
30 +++ b/dev-python/PyPDF2/PyPDF2-2.10.0.ebuild
31 @@ -0,0 +1,131 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..11} )
39 +
40 +inherit distutils-r1
41 +
42 +SAMPLE_COMMIT=b6f4ff3de00745783d79f25cb8803901d1f20d28
43 +DESCRIPTION="Python library to work with PDF files"
44 +HOMEPAGE="
45 + https://pypi.org/project/PyPDF2/
46 + https://github.com/py-pdf/PyPDF2/
47 +"
48 +SRC_URI="
49 + https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz
50 + -> ${P}.gh.tar.gz
51 + test? (
52 + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
53 + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz
54 + )
55 +"
56 +
57 +LICENSE="BSD-2"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
60 +
61 +RDEPEND="
62 + $(python_gen_cond_dep '
63 + dev-python/typing-extensions[${PYTHON_USEDEP}]
64 + ' 3.8 3.9)
65 +"
66 +BDEPEND="
67 + dev-python/pillow[${PYTHON_USEDEP}]
68 + test? (
69 + dev-python/pycryptodome[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +distutils_enable_tests pytest
74 +
75 +EPYTEST_DESELECT=(
76 + # Needs network access
77 + tests/test_cmap.py
78 + tests/test_filters.py::test_decompress_zlib_error
79 + tests/test_filters.py::test_lzw_decode_neg1
80 + tests/test_filters.py::test_issue_399
81 + tests/test_generic.py::test_dict_read_from_stream
82 + tests/test_generic.py::test_parse_content_stream_peek_percentage
83 + tests/test_generic.py::test_read_inline_image_no_has_q
84 + tests/test_generic.py::test_read_inline_image_loc_neg_1
85 + tests/test_generic.py::test_text_string_write_to_stream
86 + tests/test_generic.py::test_name_object_read_from_stream_unicode_error
87 + tests/test_generic.py::test_bool_repr
88 + tests/test_generic.py::test_issue_997
89 + tests/test_merger.py::test1
90 + tests/test_merger.py::test_bookmark
91 + tests/test_merger.py::test_iss1145
92 + tests/test_merger.py::test_sweep_indirect_list_newobj_is_None
93 + tests/test_merger.py::test_sweep_recursion1
94 + tests/test_merger.py::test_sweep_recursion2
95 + tests/test_merger.py::test_trim_outline
96 + tests/test_merger.py::test_trim_outline_list
97 + tests/test_merger.py::test_zoom
98 + tests/test_merger.py::test_zoom_xyz_no_left
99 + tests/test_page.py::test_empyt_password_1088
100 + tests/test_page.py::test_extract_text_operator_t_star
101 + tests/test_page.py::test_extract_text_page_pdf
102 + tests/test_page.py::test_extract_text_page_pdf_impossible_decode_xform
103 + tests/test_page.py::test_extract_text_single_quote_op
104 + 'tests/test_page.py::test_page_operations[https://arxiv.org/pdf/2201.00029.pdf-None]'
105 + tests/test_reader.py::test_extract_text_pdf15
106 + tests/test_reader.py::test_extract_text_xref_issue_2
107 + tests/test_reader.py::test_extract_text_xref_issue_3
108 + tests/test_reader.py::test_extract_text_xref_table_21_bytes_clrf
109 + tests/test_reader.py::test_get_fields
110 + tests/test_reader.py::test_get_fields_read_else_block
111 + tests/test_reader.py::test_get_fields_read_else_block2
112 + tests/test_reader.py::test_get_fields_read_else_block3
113 + tests/test_reader.py::test_get_fields_read_write_report
114 + tests/test_reader.py::test_iss925
115 + tests/test_reader.py::test_metadata_is_none
116 + tests/test_reader.py::test_outline_color
117 + tests/test_reader.py::test_outline_font_format
118 + tests/test_reader.py::test_outline_with_empty_action
119 + tests/test_reader.py::test_outline_with_missing_named_destination
120 + tests/test_reader.py::test_read_form_416
121 + tests/test_reader.py::test_unexpected_destination
122 + tests/test_reader.py::test_unexpected_destination
123 + tests/test_reader.py::test_xfa_non_empty
124 + tests/test_reader.py::test_PdfReaderMultipleDefinitions
125 + tests/test_utils.py::test_deprecate_no_replacement
126 + tests/test_workflows.py::test_compress
127 + tests/test_workflows.py::test_extract_text
128 + tests/test_workflows.py::test_extract_textbench
129 + tests/test_workflows.py::test_get_fields
130 + tests/test_workflows.py::test_get_fonts
131 + tests/test_workflows.py::test_get_metadata
132 + tests/test_workflows.py::test_get_outline
133 + tests/test_workflows.py::test_image_extraction
134 + tests/test_workflows.py::test_merge
135 + tests/test_workflows.py::test_merge_with_warning
136 + tests/test_workflows.py::test_overlay
137 + tests/test_workflows.py::test_scale_rectangle_indirect_object
138 + tests/test_workflows.py::test_get_xfa
139 + tests/test_writer.py::test_sweep_indirect_references_nullobject_exception
140 + tests/test_writer.py::test_write_bookmark_on_page_fitv
141 + tests/test_xmp.py::test_custom_properties
142 + tests/test_xmp.py::test_dc_creator
143 + tests/test_xmp.py::test_dc_description
144 + tests/test_xmp.py::test_dc_subject
145 + tests/test_xmp.py::test_issue585
146 + tests/test_xmp.py::test_xmpmm
147 + tests/test_merger.py::test_outline_item
148 + tests/test_page.py::test_iss_1142
149 + tests/test_page.py::test_read_link_annotation
150 + tests/test_reader.py::test_named_destination
151 + tests/test_writer.py::test_write_outline_item_on_page_fitv
152 +
153 + # TODO
154 + tests/test_workflows.py::test_orientations
155 +)
156 +
157 +src_unpack() {
158 + default
159 + if use test; then
160 + mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die
161 + fi
162 +}