aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-jsonpickle/APKBUILD
blob: 1f7aa1ead2aec1963b898748dcc561a44f15fb32 (plain) (blame)
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
# Maintainer:
pkgname=py3-jsonpickle
pkgver=1.4.1
pkgrel=0
pkgdesc="Serializing any arbitrary object graph into JSON"
url="https://pypi.python.org/pypi/jsonpickle/"
arch="noarch !mips !mips64"
license="BSD-3-Clause"
depends="python3 py3-numpy py3-pandas"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-$pkgver.tar.gz
	tests.patch
	test-opts.patch
	"
builddir="$srcdir/jsonpickle-$pkgver"

replaces="py-jsonpickle" # Backwards compatibility
provides="py-jsonpickle=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=$PWD/build/lib pytest-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="ed6bf3472c59ba907a973c5c6f05de13dbfc75eef103796b8f8a63d388f769527f22667ca8761092d1649ff2caf5a73de0593e370df3e7fcabe06e73b265da35  jsonpickle-1.4.1.tar.gz
8df533695556bc7b329211dfbb5ad667fbd8f9b569721a054f9dead9402ac365666f50ff4343feda536e679a58f1244708ab10fa2f6f8b33b2469dfdc57c576c  tests.patch
3cfa2793f5d51b32aea0453adc677766f8545963cf6cc0d8726dfd43c1038673e3b232a232d18bfb5feb9032ff778677243e0451688ed503a2865f761fdaf655  test-opts.patch"