From 3f559ef486314f9b3b48d48eb303d6be68463af9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 3 Sep 2024 12:28:20 +0100 Subject: gentoo auto-resync : 03:09:2024 - 12:28:20 --- dev-python/jsonpickle/Manifest | 2 + dev-python/jsonpickle/jsonpickle-3.3.0.ebuild | 69 +++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 dev-python/jsonpickle/jsonpickle-3.3.0.ebuild (limited to 'dev-python/jsonpickle') diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest index 0a1d450f8a1e..f8ee52713819 100644 --- a/dev-python/jsonpickle/Manifest +++ b/dev-python/jsonpickle/Manifest @@ -1,3 +1,5 @@ DIST jsonpickle-3.2.2.gh.tar.gz 321994 BLAKE2B 1e126e0f1f336e5b64631a874c379b39665b324ccbc4c87d7becba302568f61df2d576732ea9165514791e6b2dd122e7008d43090d634d4d30fdde5c7d0600f9 SHA512 20e28885e637f8dba5965e22dc9960acb7c10fb25d78f2ba9bf6fb94d55a968e2245d577dbe19a32153e12af2ffa7dad6ae3e1897c426c25fa544796606736a6 +DIST jsonpickle-3.3.0.gh.tar.gz 324099 BLAKE2B e2c922df65f497b80ae78258024342de763d7585ce391f076e9e8a2f1da73e5c755b977be069a9778c85721b2fdcfcde70034374c7f38f001486a41742e9a488 SHA512 b796c2263ccb38e9e9191d9519ac044defa5df8a2b34bc8002f4de59397056048e037ae12f3e5ca46061febb81a7b35cfec11335926c893357f0c22e9b1b6d85 EBUILD jsonpickle-3.2.2.ebuild 1707 BLAKE2B 02c73f9ac44ab510543949c1380bb496bcd035b10615085afd0de7557b317620219ee5dec208fc13d64cfa7c5fd9e245c1ff25eba58f609a881061fc6735ce93 SHA512 1cb1e62e274f11b82c0a564566be8b38029a92e74cd6a407d60ac0b2f4c8c7d142998a8a12cce2264721eaeb2085bd8c8ad8ff191d67926ff66c5977d35748a2 +EBUILD jsonpickle-3.3.0.ebuild 1675 BLAKE2B 3f1c012510b0c182edff3a297d120bfc20b65bde0cdd9010a89047413feb6c880a94f2f989fd9678811500b2a3562b3df64abac5b9814c5f3b91ad94c9d02a38 SHA512 269e787a60a9784dd299792156373a23300fbddd61d43e6b3fac9cdf09218d61f5bb6fd33e91a280cbf1e9b85e2b8154f5516644a1c86901de8de0a9adf04937 MISC metadata.xml 412 BLAKE2B a7e746abd8b45415ecdbccbde1b65ba9f1fa9fe7ce353411681c2a3de046878e990aad20849ee561a56ad3208bd5071d7b5e5b3c767fd71b7c44d2e8412d349b SHA512 dc52df78fdfe9024e695aae3d2bf22bed7162e1f2a528a288056b68022ebbc400b0a3a2f3e9c2155ee57e66d77a4f7a3f6f67188fb13ee15f200212ac6809a31 diff --git a/dev-python/jsonpickle/jsonpickle-3.3.0.ebuild b/dev-python/jsonpickle/jsonpickle-3.3.0.ebuild new file mode 100644 index 000000000000..2ff464c9795a --- /dev/null +++ b/dev-python/jsonpickle/jsonpickle-3.3.0.ebuild @@ -0,0 +1,69 @@ +# 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}] + $(python_gen_cond_dep ' + dev-python/pandas[${PYTHON_USEDEP}] + ' 3.{10..12}) + 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 +} -- cgit v1.2.3