mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 20:16:40 +02:00
41 lines
1.4 KiB
Text
41 lines
1.4 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=py3-glob2
|
|
_pkgname=glob2
|
|
pkgver=0.7
|
|
pkgrel=6
|
|
pkgdesc="Version of the glob module that supports recursion via **, and can capture patterns"
|
|
url="https://github.com/miracle2k/python-glob2"
|
|
arch="noarch"
|
|
license="BSD-2-Clause"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
pytest8.patch
|
|
regex-escape.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$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 pytest test.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
6707c33782373cd71b1794ef3a143f6c0ceb5733bec944d16596eb4662df4c788328078b621bdda6096da95ec2f267256fca620dd7691eb02bf0ce940dd4150e glob2-0.7.tar.gz
|
|
3e231b6f94abde4da3e40a580b951e5683080f1b4a0690015826eddaa70e311a50c8a09872aa7b497ceffccd629368c75dc5e98d2cc2fe3c7d1386b802c03083 pytest8.patch
|
|
382aac0f67104394c7036b667a4d8f723882b431c55ff9a940ca88b30eff6fe050aaa5765d0089a4f26cb0ad98d17cbc651da679722dcdeeeb7790cab97c5431 regex-escape.patch
|
|
"
|