2021-10-06 16:45:44 +02:00
|
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
|
|
# Contributor: Daniel Isaksen <d@duniel.no>
|
|
|
|
# Contributor: Mickaël Schoentgen <mickael@apible.io>
|
|
|
|
pkgname=httpie
|
2021-10-19 10:18:35 +02:00
|
|
|
pkgver=2.6.0
|
2021-10-06 16:45:44 +02:00
|
|
|
pkgrel=0
|
2021-10-19 10:18:35 +02:00
|
|
|
pkgdesc="Modern, user-friendly command-line HTTP client for the API era"
|
2021-10-06 16:45:44 +02:00
|
|
|
url="https://httpie.org/"
|
|
|
|
arch="noarch"
|
|
|
|
license="BSD-3-Clause"
|
2021-10-19 10:18:35 +02:00
|
|
|
depends="
|
|
|
|
python3
|
|
|
|
py3-setuptools
|
|
|
|
py3-requests
|
|
|
|
py3-pygments
|
|
|
|
py3-requests-toolbelt
|
|
|
|
py3-pysocks
|
|
|
|
py3-defusedxml
|
|
|
|
py3-charset-normalizer
|
|
|
|
"
|
2021-10-06 16:45:44 +02:00
|
|
|
checkdepends="py3-pytest py3-pytest-httpbin py3-responses"
|
|
|
|
source="https://files.pythonhosted.org/packages/source/h/httpie/httpie-$pkgver.tar.gz"
|
|
|
|
|
|
|
|
# secfixes:
|
|
|
|
# 1.0.3-r0:
|
|
|
|
# - CVE-2019-10751
|
|
|
|
|
|
|
|
build() {
|
|
|
|
python3 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
python3 -m pytest ./httpie ./tests
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
}
|
|
|
|
|
2021-10-19 10:18:35 +02:00
|
|
|
sha512sums="a38e9769c1994fcb4e5f898e5a72283c636ea155f1fc4d594eb59c43fe98115335dec4fddd6d4e396bd11b674715c573d2fc40c4afb732ba31da0cb8e2068fd2 httpie-2.6.0.tar.gz"
|