# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-w3lib _pkgname=w3lib pkgver=1.22.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 python-3.9.patch " 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 -v } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="fbc2bbc06808ec5d28e300ce00e2a59cc07a3a15e4a3690d3b6a105b6f33e6e02fab057b27733d9ea69bc99ebc1e7e8e628e1408a00194991ea05f35dae8bf10 w3lib-1.22.0.tar.gz 02ce9478acae629c385c7874ba4daf859d94a6b3258f17b80fd56d7f86c4830c8cbfdfe5adcb1329bfa72c05ed963081ae0fda4e989287133423e11caad80fa4 python-3.9.patch"