aboutsummaryrefslogtreecommitdiffstats
path: root/community/httpie/APKBUILD
blob: d0b90e08baf8f01359cff919904cc203a1977045 (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Daniel Isaksen <d@duniel.no>
pkgname=httpie
pkgver=2.0.0
pkgrel=0
pkgdesc="A CLI, cURL-like tool"
options="!check" # Requires 'pytest-httpbin'
url="https://httpie.org/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-requests py3-pygments"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/h/httpie/httpie-$pkgver.tar.gz"

# secfixes:
#   1.0.3-r0:
#     - CVE-2019-10751

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

build() {
	python3 setup.py build
}

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

sha512sums="9dc516bf3f41fda2f508133eef268a1a5208ecb56ff6f767d391a72a72dfdccd00ff4456c96a0b2070cab162983cdd51444328bcbb517e111582689e6a191b59  httpie-2.0.0.tar.gz"