aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-webob/APKBUILD
blob: 703ea962dd6d3fae46a09d9d497d3814348a2301 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-webob
_pkgname=WebOb
pkgver=1.8.5
pkgrel=2
pkgdesc="A Python WSGI request and response objects"
url="https://webob.org/"
arch="noarch"
license="MIT"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-webob" # Backwards compatibility
provides="py-webob=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest --addopts "--ignore=docs"
}

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

sha512sums="cc0b956a7c3b8ae58d6002baf5c6de4e442201280468f8fc8b5fbd2c7f7cb7a8f46447f97b98a32a9959c8d1aa7a2a8a7b9d624cb27ca79b2ad1ce94f891801b  WebOb-1.8.5.tar.gz"