ayaports/backports/py3-w3lib/APKBUILD

36 lines
953 B
Text
Raw Normal View History

2024-01-05 01:56:34 +00:00
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-w3lib
_pkgname=w3lib
pkgver=2.1.2
pkgrel=0
pkgdesc="A library of web-related functions"
url="https://github.com/scrapy/w3lib"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-w3lib" # Backwards compatibility
provides="py-w3lib=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
pytest -v
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
cfff2520cab24b84c93223125de3fb813e4d40d23a022f7fc34196c3033adb5dfc01358d62566dcc4b763d40b271e1428eba0250ba997228d07f35cd3721e37e w3lib-2.1.2.tar.gz
"