mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 01:05:15 +03:00
32 lines
927 B
Text
32 lines
927 B
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-w3lib
|
|
_pkgname=w3lib
|
|
pkgver=1.21.0
|
|
pkgrel=1
|
|
pkgdesc="A library of web-related functions"
|
|
url="https://github.com/scrapy/w3lib"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-six"
|
|
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() {
|
|
py.test-3
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="7038d919d722857a32dc7a0a54287478bb7e713181efe7e37607ba174447b44d947c76dec5e1030ce159156f9d60bcc79cf2198313a7f2c2894d7a6d59c7a276 w3lib-1.21.0.tar.gz"
|