synit/packaging/packages/py3-preserves/APKBUILD

31 lines
789 B
Plaintext

# Maintainer: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
pkgname=py3-preserves
_pyname=preserves
pkgver=0.8.0
pkgrel=0
pkgdesc="Preserves serialization format"
url="https://preserves.gitlab.io/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-pip py3-wheel"
_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() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
a5fa5d318355b1191b2904d6f542dbd9411eb82e8e41a40d94411fc71495b463aa48de2844c9c07983f62705edd8b688d597f2731bb19617cf92f169c3156765 preserves-0.8.0.tar.gz
"