mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 20:55:20 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
926 B
Text
34 lines
926 B
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-w3lib
|
|
_pkgname=w3lib
|
|
pkgver=2.1.1
|
|
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"
|
|
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="
|
|
f720ec4ded534474ef8f18df388fdaad56ccd48de797c0ec6145737479bc3d589a0e376316aab08c5f4ffe5f0fa07a383d655e3feedc1d1ba51c4cf9ee9639ac w3lib-2.1.1.tar.gz
|
|
"
|