1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-zc.lockfile/APKBUILD
Duncan Bellamy 7a7638e4f9 community/py3-zc.lockfile: upgrade to 3.0
* build with pep517
2023-02-27 00:30:41 +00:00

33 lines
1 KiB
Text

# Contributor: Jiri Kastner <cz172638@gmail.com>
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-zc.lockfile
pkgver=3.0
pkgrel=0
pkgdesc="Basic inter-process locks"
url="https://github.com/zopefoundation/zc.lockfile"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-zope-testing py3-zope-testrunner"
source="https://files.pythonhosted.org/packages/source/z/zc.lockfile/zc.lockfile-$pkgver.tar.gz"
builddir="$srcdir/zc.lockfile-$pkgver"
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
testenv/bin/python3 -m zope.testrunner --test-path=src
}
package() {
python3 -m installer -d "$pkgdir" dist/*.whl
}
sha512sums="
65662d03933b0e295d69971a74a1d1ddf67086287bd98752d6d23d793130b0c612413c0dba365f7fa2213a5ef0981fc20bccbde304dc36a4092ad1f702ee9429 zc.lockfile-3.0.tar.gz
"