aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-w3lib/APKBUILD
blob: d301707b63386281c238801c5c94c0ea0aa0b5c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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"