void-packages/srcpkgs/python-openssl/template
Alessio Sergi 1964707349 python-openssl: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-16 22:16:18 +02:00

34 lines
1,004 B
Bash

# Template file for 'python-openssl'
pkgname=python-openssl
version=16.1.0
revision=2
noarch=yes
wrksrc="pyOpenSSL-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-cryptography python-six"
pycompile_module="OpenSSL"
short_desc="Python2 interface to the OpenSSL library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/pyca/pyopenssl"
license="Apache-2.0"
distfiles="${PYPI_SITE}/p/pyOpenSSL/pyOpenSSL-${version}.tar.gz"
checksum=88f7ada2a71daf2c78a4f139b19d57551b4c8be01f53a1cb5c86c2f3bf01355f
python3-openssl_package() {
noarch=yes
depends="python3-cryptography python3-six"
pycompile_module="OpenSSL"
replaces="python3.4-openssl>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-openssl_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-openssl>=${version}_${revision}"
}