2019-05-07 22:11:41 +02:00

29 lines
816 B
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-glob2
_pkgname=glob2
pkgver=0.6
pkgrel=0
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"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
pytest-3 test.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="f4f17eb44d03c0675bc4e8832f2c7dbf42f37456bb664ebbc534d1ac0940061907aaf94b9d9d297dc79b2edfc0677912fdb1b4b47a1a6dfba7cf098135c5e839 glob2-0.6.tar.gz"