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