commit:     a9d570fcc7337e8adaf4641bae8260461209a683
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  2 13:51:23 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  2 14:03:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d570fc

dev-python/jsonpickle: add 3.0.0

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/jsonpickle/Manifest                |  1 +
 dev-python/jsonpickle/jsonpickle-3.0.0.ebuild | 58 +++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest
index 54024482c4fc..353187458330 100644
--- a/dev-python/jsonpickle/Manifest
+++ b/dev-python/jsonpickle/Manifest
@@ -1 +1,2 @@
 DIST jsonpickle-2.2.0.tar.gz 189866 BLAKE2B 
d8fcd0e8b71947b734c59240d9fa4f0b35b9b0ac2e2940a9baf05c160771db0eae5f011b61e3b1c0bc746a740ac2e137a392931e270fea3acf4884578133283e
 SHA512 
b6cb35316e32f38875cbfa3784a3930f669d4ea730ead6117242070590647987383e9f933c193b8c246c40dba87ad56600a65db89c45c18a790b3c1f9232b245
+DIST jsonpickle-3.0.0.tar.gz 192204 BLAKE2B 
de46fce9b4cee97ededb4e6febff234c499e0a1025d01dc5e90278e35744938ed1d8bc4f0ac0a0ba5e6006c9bea777479f338849c449aa1e6005c3eb5162d721
 SHA512 
825e70ccbc35554e7a1938307a81c0672c3a43a10d79a2159e6f453a12a98d36ab5839cf56cd1927c37f30a10efdc33d43a26c91dc7791e788537e2dbd449181

diff --git a/dev-python/jsonpickle/jsonpickle-3.0.0.ebuild 
b/dev-python/jsonpickle/jsonpickle-3.0.0.ebuild
new file mode 100644
index 000000000000..5d5960256f90
--- /dev/null
+++ b/dev-python/jsonpickle/jsonpickle-3.0.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Python library for serializing any arbitrary object graph into 
JSON"
+HOMEPAGE="
+       https://github.com/jsonpickle/jsonpickle/
+       https://pypi.org/project/jsonpickle/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="
+       dev-python/setuptools_scm[${PYTHON_USEDEP}]
+       test? (
+               dev-python/feedparser[${PYTHON_USEDEP}]
+               dev-python/numpy[${PYTHON_USEDEP}]
+               dev-python/pandas[${PYTHON_USEDEP}]
+               dev-python/simplejson[${PYTHON_USEDEP}]
+               dev-python/sqlalchemy[${PYTHON_USEDEP}]
+               dev-python/ujson[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       sed -i -e 's:--cov::' pytest.ini || die
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       local EPYTEST_IGNORE=(
+               # unpackaged bson dependency
+               tests/bson_test.py
+               # broken when gmpy is installed
+               # https://github.com/jsonpickle/jsonpickle/issues/328
+               # https://github.com/jsonpickle/jsonpickle/issues/316
+               tests/ecdsa_test.py
+       )
+       epytest
+}
+
+pkg_postinst() {
+       # Unpackaged optional backends: yajl, demjson
+       optfeature "encoding numpy-based data" dev-python/numpy
+       optfeature "encoding pandas objects" dev-python/pandas
+       optfeature "fast JSON backend" dev-python/simplejson
+}

Reply via email to