aboutsummaryrefslogtreecommitdiff
path: root/apks/py3-jsonpickle/APKBUILD
blob: bb33ec8598069666d4cd399bae57301b1082d6a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-jsonpickle
pkgver=3.0.1
pkgrel=1
pkgdesc="Serializing any arbitrary object graph into JSON"
url="https://pypi.org/project/jsonpickle/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest py3-numpy py3-pandas"
source="https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-$pkgver.tar.gz
	noaddopts.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
	# no gmpy
	testenv/bin/python3 -m pytest --deselect tests/ecdsa_test.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/*.whl
}

sha512sums="
88634acb751a0bac2c9d2ca9872dd92aeab3245ec7c1b0dced0272dc9104923b2143898fd3f7f2666bd2b220ab2396e0b2f065853256b5995695ca56534a5ea5  jsonpickle-3.0.1.tar.gz
4e95e2abd347cf221c33e919dba9cbe0886ae18c76e1ef221e0764d05e6f0e8d80731c9d84a0e0ddee94a9638784415a61bab2986d46ea54f7c9d5dc8e1226e1  noaddopts.patch
"