mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: prspkt <prspkt@protonmail.com>
|
|
# Maintainer: prspkt <prspkt@protonmail.com>
|
|
pkgname=py3-protego
|
|
pkgver=0.3.1
|
|
pkgrel=0
|
|
pkgdesc="Pure-Python robots.txt parser with support for modern conventions"
|
|
url="https://github.com/scrapy/protego"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz"
|
|
builddir="$srcdir/Protego-$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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2ec2b7f5d27f7e69a0513f59c6916f5b022c89706a78e65f222d4e8470390b0bef342e341fd6f861e72cf448a0bfe3f0c23fb2ffe94fc8a14a9a1b501c890d06 Protego-0.3.1.tar.gz
|
|
"
|