void-packages/srcpkgs/python-ndg_httpsclient/template

35 lines
1.1 KiB
Bash

# Template file for 'python-ndg_httpsclient'
pkgname=python-ndg_httpsclient
version=0.4.4
revision=1
noarch=yes
wrksrc="ndg_httpsclient-${version}"
build_style=python-module
pycompile_module="ndg/httpsclient"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-openssl python-pyasn1"
short_desc="HTTPS support for httplib and urllib2 (Python2)"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
homepage="https://github.com/cedadev/ndg_httpsclient"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/n/ndg_httpsclient/ndg_httpsclient-${version}.tar.gz"
checksum=fba4d4798dcac2965874f24afb6631b4326baa4bd02505744d34f690c354856a
alternatives="ndg_httpclient:ndg_httpclient:/usr/bin/ndg_httpclient2"
post_install() {
vlicense ndg/httpsclient/LICENSE
}
python3-ndg_httpsclient_package() {
noarch=yes
depends="python3-openssl python3-pyasn1"
pycompile_module="ndg/httpsclient"
short_desc="${short_desc/Python2/Python3}"
alternatives="ndg_httpclient:ndg_httpclient:/usr/bin/ndg_httpclient3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense ndg/httpsclient/LICENSE
}
}