commit: 3e33a6120666463919143e9735605b3637898507
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 7 06:15:06 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 7 06:34:28 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e33a612
dev-python/jsonpickle: Bump to 3.4.2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/jsonpickle/Manifest | 1 +
dev-python/jsonpickle/jsonpickle-3.4.2.ebuild | 67 +++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest
index 7737bf732f0e..6dc9046ea843 100644
--- a/dev-python/jsonpickle/Manifest
+++ b/dev-python/jsonpickle/Manifest
@@ -1,2 +1,3 @@
DIST jsonpickle-3.3.0.gh.tar.gz 324099 BLAKE2B
e2c922df65f497b80ae78258024342de763d7585ce391f076e9e8a2f1da73e5c755b977be069a9778c85721b2fdcfcde70034374c7f38f001486a41742e9a488
SHA512
b796c2263ccb38e9e9191d9519ac044defa5df8a2b34bc8002f4de59397056048e037ae12f3e5ca46061febb81a7b35cfec11335926c893357f0c22e9b1b6d85
DIST jsonpickle-3.4.1.gh.tar.gz 307367 BLAKE2B
3885953e418ee07266abecaa0360527a8f5074c3d1f56ee921102a32a1780a752c6a5bf70e127b47ddbbb9c2a32c62268c5af67a11d253d40a76fdb9b8756924
SHA512
0dec541753e0b1bb980d78d091fdc01f4e390415d39ffe2c1a0c466629b23580aa4d849bef4cc8c4ccb5666445a8229cceacc6b3e01e104b648adb076ac7e04e
+DIST jsonpickle-3.4.2.gh.tar.gz 307391 BLAKE2B
30be4460787349a7359062e5ebb14a4fbf3139f12b6bc388d903a419aa7e1a0bed93202aecacf5b43379de9335938b9948dc79f46b73791212b1623c972be0de
SHA512
745a1355fa171224b48466590e1dd210d25cda41b8d9a9dfbafebf3b4fe17ca2b5e19b2c3c63d4fd3d5e70a800418f4da95404c3ce86fdfef163deb9b0d3ba46
diff --git a/dev-python/jsonpickle/jsonpickle-3.4.2.ebuild
b/dev-python/jsonpickle/jsonpickle-3.4.2.ebuild
new file mode 100644
index 000000000000..e800bef59187
--- /dev/null
+++ b/dev-python/jsonpickle/jsonpickle-3.4.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+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="
+ https://github.com/jsonpickle/jsonpickle/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/feedparser[${PYTHON_USEDEP}]
+ dev-python/gmpy[${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() {
+ distutils-r1_python_prepare_all
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+}
+
+python_test() {
+ local EPYTEST_IGNORE=(
+ # unpackaged bson dependency
+ tests/bson_test.py
+ )
+
+ if ! has_version "dev-python/gmpy[${PYTHON_USEDEP}]"; then
+ EPYTEST_IGNORE+=( jsonpickle/ext/gmpy.py )
+ fi
+ if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
+ EPYTEST_IGNORE+=( jsonpickle/ext/pandas.py )
+ fi
+
+ epytest tests
+}
+
+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
+}