# Template file for 'httpie'
pkgname=httpie
version=3.2.2
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-requests python3-requests-toolbelt
 python3-Pygments python3-pysocks python3-defusedxml python3-charset-normalizer
 python3-multidict python3-rich"
short_desc="Modern, user-friendly command-line HTTP client for the API era"
maintainer="classabbyamp <void@placeviolette.net>"
license="BSD-3-Clause"
homepage="https://httpie.io/"
changelog="https://raw.githubusercontent.com/httpie/httpie/master/CHANGELOG.md"
distfiles="https://github.com/httpie/httpie/archive/${version}.tar.gz"
checksum=01b4407202fac3cc68c73a8ff1f4a81a759d9575fabfad855772c29365fe18e6
# requires pytest-lazy-fixture (not packaged), many tests fail
make_check=no

post_install() {
	for page in http https httpie; do
		vman extras/man/$page.1
	done
	vcompletion extras/httpie-completion.bash bash http
	vcompletion extras/httpie-completion.fish fish http
	vlicense LICENSE
}

python3-httpie_package() {
	build_style=meta
	short_desc+=" (transitional dummy package)"
	depends="httpie>=${version}_${revision}"
}
