1 |
commit: edb134413dfc2959fe38055535f23320c44ef6a2 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 14 11:16:16 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 14 11:16:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edb13441 |
7 |
|
8 |
dev-python/jsonpickle: add 2.1.0 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/jsonpickle/Manifest | 1 + |
13 |
dev-python/jsonpickle/jsonpickle-2.1.0.ebuild | 55 +++++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest |
17 |
index e3699d6f0989..a1400e3612e5 100644 |
18 |
--- a/dev-python/jsonpickle/Manifest |
19 |
+++ b/dev-python/jsonpickle/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST jsonpickle-2.0.0.tar.gz 110336 BLAKE2B 574dab58418c5225a9364836d04eaabf3384e9dab404d191846a4bb41e9c8bbb51243a6a231ec8baf05ff9be337e12b5c96c46b74a327e9f05653ca81bf6ccf2 SHA512 acba11e5dfce116b27edfe0fdccdd74755e299aa43f873dd1ce547d947b58f14c1059c21d04007b5be0857f7ce69fe5355fb2edc47a99cc2217fe00297ca78d3 |
22 |
+DIST jsonpickle-2.1.0.tar.gz 186799 BLAKE2B a9e82a046fc77e1a4d5e7b1f13fc34f07e0e42e34922258bb0bd5aa4557bfec2b5fc06e450a0391522ae27380306111001204eb4f5429c2ad1f908fc4dec40a0 SHA512 46e8bcc2e24616da43b87bf8371ec9b39de1e8e33380684c05b7d7c6695f17bcc21150848c3306d235f89c5d74c69b6fda79e93fc823665d72cc88d9d89d8484 |
23 |
|
24 |
diff --git a/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild b/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..49cc08ae65f5 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/jsonpickle/jsonpickle-2.1.0.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 optfeature |
37 |
+ |
38 |
+DESCRIPTION="Python library for serializing any arbitrary object graph into JSON" |
39 |
+HOMEPAGE="https://github.com/jsonpickle/jsonpickle/ https://pypi.org/project/jsonpickle/" |
40 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
45 |
+ |
46 |
+BDEPEND=" |
47 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
48 |
+ test? ( |
49 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
50 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
51 |
+ dev-python/simplejson[${PYTHON_USEDEP}] |
52 |
+ dev-python/sqlalchemy[${PYTHON_USEDEP}] |
53 |
+ dev-python/ujson[${PYTHON_USEDEP}] |
54 |
+ dev-python/feedparser[${PYTHON_USEDEP}] |
55 |
+ )" |
56 |
+ |
57 |
+distutils_enable_sphinx docs \ |
58 |
+ dev-python/jaraco-packaging \ |
59 |
+ dev-python/rst-linker |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ sed -i -e 's:--flake8 --black --cov::' pytest.ini || die |
64 |
+ distutils-r1_python_prepare_all |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ local EPYTEST_IGNORE=( |
69 |
+ # unpackaged bson dependency |
70 |
+ tests/bson_test.py |
71 |
+ # broken when gmpy is installed |
72 |
+ # https://github.com/jsonpickle/jsonpickle/issues/328 |
73 |
+ # https://github.com/jsonpickle/jsonpickle/issues/316 |
74 |
+ tests/ecdsa_test.py |
75 |
+ ) |
76 |
+ epytest |
77 |
+} |
78 |
+ |
79 |
+pkg_postinst() { |
80 |
+ # Unpackaged optional backends: yajl, demjson |
81 |
+ optfeature "encoding numpy-based data" dev-python/numpy |
82 |
+ optfeature "encoding pandas objects" dev-python/pandas |
83 |
+ optfeature "fast JSON backend" dev-python/simplejson |
84 |
+} |