1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-17 14:05:25 +03:00
aports/community/py3-zope-interface/APKBUILD

40 lines
1.2 KiB
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-zope-interface
_pkgname=zope.interface
pkgver=7.2
pkgrel=0
pkgdesc="Separate distribution of the zope.interface package used in Zope"
url="https://zopeinterface.readthedocs.io"
arch="all"
license="ZPL-2.1"
makedepends="python3-dev py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-coverage py3-zope-event py3-zope-testing"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-zope-interface" # Backwards compatibility
provides="py-zope-interface=$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 --no-compile .dist/*.whl
cd src && ../.testenv/bin/python3 -m unittest \
zope/interface/common/tests/*.py \
zope/interface/tests/*.py
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
}
sha512sums="
eb927395bd4c4b2567dfeabad9a88bf91cc0cc0838289e96d7452e6a7c9ea56237a1d1f492703eac71ac0957dc0d3e23f57ceec55ff82fcffbbf413e09868a9c zope.interface-7.2.tar.gz
"