diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-06 07:54:12 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-06 07:54:29 +0100 |
commit | dbae60f60cea498c85a98bb658f0c9aa93537a72 (patch) | |
tree | 0d8c32f349e22c98c94665cf20c399f99534cdc1 /dev-python | |
parent | dev-python/mkdocs-material: Bump to 9.5.44 (diff) | |
download | gentoo-dbae60f60cea498c85a98bb658f0c9aa93537a72.tar.gz gentoo-dbae60f60cea498c85a98bb658f0c9aa93537a72.tar.bz2 gentoo-dbae60f60cea498c85a98bb658f0c9aa93537a72.zip |
dev-python/jsonpickle: Bump to 3.4.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/jsonpickle/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jsonpickle/jsonpickle-3.4.1.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest index f1614acffd76..7737bf732f0e 100644 --- a/dev-python/jsonpickle/Manifest +++ b/dev-python/jsonpickle/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-python/jsonpickle/jsonpickle-3.4.1.ebuild b/dev-python/jsonpickle/jsonpickle-3.4.1.ebuild new file mode 100644 index 000000000000..e800bef59187 --- /dev/null +++ b/dev-python/jsonpickle/jsonpickle-3.4.1.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 +} |