30 lines
955 B
Bash
30 lines
955 B
Bash
# Template file for 'python-openssl'
|
|
pkgname=python-openssl
|
|
version=20.0.1
|
|
revision=1
|
|
wrksrc="pyOpenSSL-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-cryptography python-six"
|
|
checkdepends="python3-cryptography python3-six
|
|
python3-pytest python3-flaky python3-pretend"
|
|
short_desc="Python2 interface to the OpenSSL library"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://pyopenssl.org/"
|
|
changelog="https://raw.githubusercontent.com/pyca/pyopenssl/master/CHANGELOG.rst"
|
|
distfiles="${PYPI_SITE}/p/pyOpenSSL/pyOpenSSL-${version}.tar.gz"
|
|
checksum=4c231c759543ba02560fcd2480c48dcec4dae34c9da7d3747c508227e0624b51
|
|
|
|
do_check() {
|
|
PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" python3 -m pytest
|
|
}
|
|
|
|
python3-openssl_package() {
|
|
depends="python3-cryptography python3-six"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|