httpie-cli/docs/packaging/linux-alpine/APKBUILD

42 lines
1.0 KiB
Plaintext
Raw Normal View History

# 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
pkgver=2.6.0
pkgrel=0
pkgdesc="Modern, user-friendly command-line HTTP client for the API era"
url="https://httpie.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
python3
py3-setuptools
py3-requests
py3-pygments
py3-requests-toolbelt
py3-pysocks
py3-defusedxml
py3-charset-normalizer
"
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"
}
sha512sums="a38e9769c1994fcb4e5f898e5a72283c636ea155f1fc4d594eb59c43fe98115335dec4fddd6d4e396bd11b674715c573d2fc40c4afb732ba31da0cb8e2068fd2 httpie-2.6.0.tar.gz"