mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +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
30 lines
849 B
Text
30 lines
849 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-url-normalize
|
|
pkgver=1.4.3
|
|
pkgrel=2
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="12916548a9a1994c43dcd8ccfab6b5d68a72924e8c2fe4691fa00d853e3f860f7e45e982ff77a259d6767ce5ab3971656ab92b39c16bc176a9ed0ec2a0a8c302 url-normalize-1.4.3.tar.gz"
|