~dricottone/huttese-apk

ref: 8f22cb99c7730e1b667039ce55119599169fa7ac huttese-apk/sr.ht/py3-httpretty/APKBUILD -rw-r--r-- 953 bytes
8f22cb99 — Drew DeVault py3-stripe: update to 2.32.0 5 years ago
                                                                                
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
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py3-httpretty
_pyname=httpretty
pkgver=0.9.6
pkgrel=0
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"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	# Fix broken PyPI permissions
	chmod -R +r "$pkgdir"/usr/lib/python3.7/site-packages/
}

sha512sums="bc1c64d34370209c732bc12dd9935600b647507ab2c8f18c85f348e9b5e853618ba39e10e5a073b35036e6cbe3db2cb7a342a721d0e4affa81fe178fd0b75d92  httpretty-0.9.6.tar.gz"