aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-httpretty/APKBUILD
blob: f0fd5f3bcd88700eebe68a50cb8dd28dbb7f38c2 (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
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py3-httpretty
_pyname=httpretty
pkgver=0.9.7
pkgrel=1
pkgdesc="HTTP client mocking tool for Python"
url="https://github.com/gabrielfalcao/HTTPretty"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-httpretty"
provides="py-httpretty=$pkgver-r$pkgrel"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	# Fix permissions on .EGG-INFO
	chmod 644 "$pkgdir"/usr/lib/python3*/site-packages/*.egg-info/*
}

sha512sums="4a1cdfc09af14ab2bc6eec84ad0905103ffb48c3154b127f646b39ff131584a52b1fd56bfe7a41959fc68d64eff94a221f9bf5a159a3dbfb3535fe4ac76c6170  httpretty-0.9.7.tar.gz"