1 |
commit: 08ccb2fc0efbeb6910364ec25b8a683f3b8ed971 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 30 16:46:08 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 17:09:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08ccb2fc |
7 |
|
8 |
dev-python/PyPDF2: add 2.4.1 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/PyPDF2/Manifest | 1 + |
13 |
dev-python/PyPDF2/PyPDF2-2.4.1.ebuild | 102 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 103 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest |
17 |
index 988a63ca7d34..e628d662809f 100644 |
18 |
--- a/dev-python/PyPDF2/Manifest |
19 |
+++ b/dev-python/PyPDF2/Manifest |
20 |
@@ -3,6 +3,7 @@ DIST PyPDF2-2.1.0.gh.tar.gz 4728411 BLAKE2B 00949842da43136afc7ee3482dc0b61182a0 |
21 |
DIST PyPDF2-2.2.1.gh.tar.gz 5019240 BLAKE2B 31412cc136bebdf0288fcdf693540e2ae8b88c08f9d837ebeb17b8f8bfae289146028890f36b7b16c6012469908d4f6855169efcebce082d4c31f634b6410162 SHA512 669c41f477114bc38a214e8f4893c5eb59d40dfe07e3c436b71ede09738539e3f47d8f9293cf9c3012887d296c7a634ee93bf2542910c400c4765bd30495f0f6 |
22 |
DIST PyPDF2-2.3.1.gh.tar.gz 5077679 BLAKE2B 36a70ef9e10ebb6d5c50b713f539aad56b8ccbd94d279aa0b0dc41e9ef1c682ac21b04b4612771e386e8655aa812e11bdbe04363ebaa074a96ffa7059f500e62 SHA512 885d6bab457be594c7a715345f0d4c6f5ba1e34f422e3de42822f4886c0021fc799682e9d253f3c3f48f8c45d387ef431843e2f2f9c7e54c1402ef31b975c511 |
23 |
DIST PyPDF2-2.4.0.gh.tar.gz 5119230 BLAKE2B a396f1e36a4ad74396a549fa6a6dd76b4a24bee66c78e52bd01b9d3ffebbf15698c0b1b30372fbc7224a815733bfcdecc7e7caa275de32f1a25f44c0e8276c9b SHA512 664f57132c6fa9d2cba324559de985b2c4de4a1f9b5d1ca4539cc9ae35b4296a0b3dac1d15ad069e3f46cc01b2b55d530c0fd5f70e6c41ce5461dfd0ebdd4cdd |
24 |
+DIST PyPDF2-2.4.1.gh.tar.gz 5121207 BLAKE2B 387085ea028d7fcbcfd5fa4e5373b655e647548093638db66fa92d44b8771bb5342f8086ebca82e205cf56f1865778bc604f49a49b39af16d8d9e3466a51653d SHA512 430e73ee6965fd6b8dac9ce8b6ee232e8ea829a7dbdfe87aafd29ae24ab182cd3e568b447030a0c199aab9049a79ce2a5518ce7fe59b1d8ce533b1313a568fc2 |
25 |
DIST PyPDF2-sample-files-41b5cd4f774f8fbd8ac42d93b9962f0376352a15.gh.tar.gz 5406287 BLAKE2B 8ddad01235bdb55cee596d9114e5b6c3b153919bcff5203d229311243516f3595cb36dcca87cae27514a8231d72daa94782115795bff8c1c3d046236811c21e0 SHA512 6c38d5ee0e1c5c0ffdd78f7c2fe56dbf357a1e82d2af642a10264a6102ae8fb95cba6d2f76b26df6a33a5d84cfd5111885d39c1747cf95a5ce545f26bdb37263 |
26 |
DIST PyPDF2-sample-files-4d24ff93dcddf21d55d028d9675d5b5bf9d7a350.gh.tar.gz 5443819 BLAKE2B 6eb440a2db3b58f7e195b8f24438552b2b414296b887cf44d75b14bda367e37ffef75b870152ac3b38e20e5a6f2c6a4cf374087b70daa9036821dd3ebdce2128 SHA512 de631f650098b6fe15830e5a816158d7f352c7a25d0c743b9e4bdf146e1ef2e3a6ea1751ed5d68f34e9a339a793bfb9dc217934595c7a8dffb854c0a4111b963 |
27 |
DIST PyPDF2-sample-files-d7ce88b71820fccaaa4738aa37cbace51f3ed3d9.gh.tar.gz 5406263 BLAKE2B 69673ec380941f567d3630459dc610b1c3a58d5f2956138776412683a96292549107294775d236d1304c054fb91b238f42942a169a7bc862c0b721de647ad191 SHA512 a245de88952de08b45e483f05a1ed42a70a67c4215dd8c32a9b5d70bb64b01acc58ebb1cee677ca178eee8380528dbfac50d3a1a022f19039fa3a47746ddc2a0 |
28 |
|
29 |
diff --git a/dev-python/PyPDF2/PyPDF2-2.4.1.ebuild b/dev-python/PyPDF2/PyPDF2-2.4.1.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..d277d78547da |
32 |
--- /dev/null |
33 |
+++ b/dev-python/PyPDF2/PyPDF2-2.4.1.ebuild |
34 |
@@ -0,0 +1,102 @@ |
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=4d24ff93dcddf21d55d028d9675d5b5bf9d7a350 |
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_generic.py::test_dict_read_from_stream |
84 |
+ tests/test_generic.py::test_parse_content_stream_peek_percentage |
85 |
+ tests/test_generic.py::test_read_inline_image_no_has_q |
86 |
+ tests/test_generic.py::test_read_inline_image_loc_neg_1 |
87 |
+ tests/test_generic.py::test_text_string_write_to_stream |
88 |
+ tests/test_generic.py::test_name_object_read_from_stream_unicode_error |
89 |
+ tests/test_generic.py::test_bool_repr |
90 |
+ tests/test_generic.py::test_issue_997 |
91 |
+ 'tests/test_page.py::test_page_operations[https://arxiv.org/pdf/2201.00029.pdf-None]' |
92 |
+ tests/test_merger.py::test_trim_outline_list |
93 |
+ tests/test_merger.py::test_zoom |
94 |
+ tests/test_merger.py::test_zoom_xyz_no_left |
95 |
+ tests/test_merger.py::test_bookmark |
96 |
+ tests/test_merger.py::test_trim_outline |
97 |
+ tests/test_merger.py::test1 |
98 |
+ tests/test_merger.py::test_sweep_recursion1 |
99 |
+ tests/test_merger.py::test_sweep_recursion2 |
100 |
+ tests/test_reader.py::test_unexpected_destination |
101 |
+ tests/test_writer.py::test_sweep_indirect_references_nullobject_exception |
102 |
+ tests/test_writer.py::test_write_bookmark_on_page_fitv |
103 |
+ tests/test_page.py::test_extract_text_single_quote_op |
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_operator_t_star |
107 |
+ tests/test_reader.py::test_iss925 |
108 |
+ tests/test_reader.py::test_extract_text_xref_issue_2 |
109 |
+ tests/test_reader.py::test_extract_text_xref_issue_3 |
110 |
+ tests/test_reader.py::test_extract_text_pdf15 |
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_metadata_is_none |
117 |
+ tests/test_reader.py::test_get_fields_read_write_report |
118 |
+ tests/test_reader.py::test_unexpected_destination |
119 |
+ tests/test_utils.py::test_deprecate_no_replacement |
120 |
+ tests/test_workflows.py::test_extract_textbench |
121 |
+ tests/test_xmp.py::test_xmpmm |
122 |
+ tests/test_xmp.py::test_dc_description |
123 |
+ tests/test_xmp.py::test_dc_creator |
124 |
+ tests/test_xmp.py::test_custom_properties |
125 |
+ tests/test_xmp.py::test_dc_subject |
126 |
+ |
127 |
+ # Broken test |
128 |
+ tests/test_utils.py::test_deprecate_no_replacement |
129 |
+) |
130 |
+ |
131 |
+src_unpack() { |
132 |
+ default |
133 |
+ if use test; then |
134 |
+ mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die |
135 |
+ fi |
136 |
+} |