aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-mechanize/APKBUILD
blob: 1fcecd6e0bd94d215965bde078fdeb471bba575a (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
33
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-mechanize
_pkgname=mechanize
pkgver=0.4.8
pkgrel=2
pkgdesc="Stateful programmatic web browsing in Python"
url="https://github.com/python-mechanize/mechanize"
arch="noarch"
license="BSD-3-Clause"
depends="py3-html5lib python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	$pkgname-fix-install.patch::https://github.com/python-mechanize/mechanize/commit/a14ecec7abcd8da9b55d28a6d9ebfd89ce635615.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 run_tests.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
71087481d27359b3ce795eae440ebb3a146f8dd5a6d5ac5dc91ae3c63f2c487beb472aa06b2925d6121faa038a0a8be50f6cecc54ee7209eb2b61e16242ffaa3  mechanize-0.4.8.tar.gz
960ecbbb73a6a1a73bdb7233fc94d4dcb261159e24916e7d9f91d352a9fb8e163e69c64d359b2d84ad35a22a557919b8d83dbe1f2d50505b053465ef420b135e  py3-mechanize-fix-install.patch
"