mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 18:04:54 +02:00
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
|
|
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
|
|
pkgname=py3-phonenumbers
|
|
pkgver=9.0.6
|
|
pkgrel=0
|
|
pkgdesc="International phone number library for Python"
|
|
url="https://github.com/daviddrysdale/python-phonenumbers"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/p/phonenumbers/phonenumbers-$pkgver.tar.gz"
|
|
builddir="$srcdir/phonenumbers-$pkgver"
|
|
|
|
replaces="py-phonenumbers" # Backwards compatibility
|
|
provides="py-phonenumbers=$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 .dist/*.whl
|
|
.testenv/bin/python3 testwrapper.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c22c03031da23c17e8660424b126d7035dd6eb91dc3dfef8b2b4788ee4628e1002748a312d8f22173625c4105fd3b2fe5b41d7f4b268eb49c840b354b4e9047b phonenumbers-9.0.6.tar.gz
|
|
"
|