1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/community/py3-jsonpickle/APKBUILD
2025-04-09 00:11:59 +00:00

45 lines
1.4 KiB
Text

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-jsonpickle
pkgver=4.0.5
pkgrel=0
pkgdesc="Serializing any arbitrary object graph into JSON"
url="https://pypi.org/project/jsonpickle/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tzdata"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest py3-numpy py3-pandas py3-simplejson"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-$pkgver.tar.gz
pandas2.patch
"
builddir="$srcdir/jsonpickle-$pkgver"
replaces="py-jsonpickle" # Backwards compatibility
provides="py-jsonpickle=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# ecdsa: no gmpy
# roundtrip: breaks on 32bit
.testenv/bin/python3 -m pytest tests \
--deselect tests/ecdsa_test.py \
-k 'not test_multindex_dataframe_roundtrip'
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
407bf10221fcd1128625bd9c275b7ce4668176ac6b37fb9c11df3135fe504712bfb2616f7f6530d3f1bbe9c691ac731c7ab15704fc95100351254c3d5d768c3c jsonpickle-4.0.5.tar.gz
f9bfea88de20248b7f3f72633c5e189966313de858956a832c2eb9f8afb4917cb26cfbf949b6ac77f25a7e6f1683f5b8b146f6c1021cb2a63e9605ae00fe2884 pandas2.patch
"