-
Bart Ribbers authoredBart Ribbers authored
APKBUILD 850 B
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-url-normalize
pkgver=1.4.3
pkgrel=0
pkgdesc="URL normalization for Python"
url="https://github.com/niksite/url-normalize"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/u/url-normalize/url-normalize-$pkgver.tar.gz"
# No setup.py in Github package and no tests in PyPi package
options="!check"
builddir="$srcdir/url-normalize-$pkgver"
build() {
python3 setup.py build
}
check() {
pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="12916548a9a1994c43dcd8ccfab6b5d68a72924e8c2fe4691fa00d853e3f860f7e45e982ff77a259d6767ce5ab3971656ab92b39c16bc176a9ed0ec2a0a8c302 url-normalize-1.4.3.tar.gz"