aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-url-normalize/APKBUILD
blob: 2c0587f3a897fcdb216abd2b7c4cfd7a8af7b532 (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
# 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"