mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 06:06:58 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-six
|
|
_pkgname=six
|
|
pkgver=1.17.0
|
|
pkgrel=0
|
|
pkgdesc="Python 2 and 3 compatibility library"
|
|
url="https://pypi.org/project/six"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/benjaminp/$_pkgname/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-six" # Backwards compatibility
|
|
provides="py-six=$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 -m pytest -rfsxX
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
50fe7cddac79d03cff390475a4d36118a8ec1b3c4709a434edc6e71edc009afca8f89065b44df1756e78fedcb415e29a460179fe171013dcd38a69aba5ff0e2a py3-six-1.17.0.tar.gz
|
|
"
|