aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-dill/APKBUILD
blob: cc7ec0a919028209d45fab85b0c1c8918b4c4067 (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-dill
_pyname=dill
pkgver=0.3.0
pkgrel=0
pkgdesc="Python serializer supporting a broader range of types than pickle"
url="https://pypi.org/projects/dill/"
arch="noarch !s390x"
license="BSD-3-Clause"
makedepends="python3 py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	export PYTHONPATH="$(pwd):$PYTHONPATH"
	for t in tests/*.py
	do
		echo "$t"
		python3 "$t"
	done
}

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

sha512sums="d3e36716ec264fab2532264e82dedf2a0923ed11f2517b3df6e5576159d5701f336125e7967a37f4c80c37f60abf584b9f7cd4225ed68f942dca7af500c091cf  dill-0.3.0.tar.gz"