dev-python/jsonpickle: Bump to 4.0.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-12-15 03:47:20 +01:00
parent 24501118ee
commit a817c2d4d6
2 changed files with 68 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST jsonpickle-4.0.0.gh.tar.gz 308065 BLAKE2B f55d8e6cc88a35057ecd75cf61878db7040b29c7e6980a99b5457e0851e2be048fed5995a55f2eeae41299c9ee335d7e046ef4389b5549a0a88f3e5e3b516f24 SHA512 6e227d7002e53f705df77c1af95cfa33778c31e030217c5d17a9f0879f6dfa3c4be88e6cb5ec59aec057b874995acf3dd20917f4aa2f098dc2fcb6605eef38b1
DIST jsonpickle-4.0.1.gh.tar.gz 307912 BLAKE2B c8f6e9320eb38c6656d97f3b1397040a03ff09b31bb924bb38112c041e7e91954b7c1026328dd511e382a238731d6ca017331881e7fd15da68607daa1d01fba9 SHA512 21da8f4fc1d1801cd2dc7849b6088f9991814d86014df30f769e7c07035934e2f794a3a449714b64ac5cc4452f1af163a7d8c52fb5432972e058d832bab4daf1

View File

@@ -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/gmpy2[${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/gmpy2[${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
}