# Template file for 'python-M2Crypto' pkgname=python-M2Crypto version=0.30.1 revision=1 wrksrc="M2Crypto-${version}" build_style=python-module pycompile_module="M2Crypto" hostmakedepends="python-setuptools python3-setuptools swig libressl-devel" makedepends="libressl-devel python-devel python3-devel" depends="python-typing" short_desc="Python2 crypto and SSL toolkit" maintainer="Andrea Brancaleoni " license="MIT" homepage="https://gitlab.com/m2crypto/m2crypto/" distfiles="${PYPI_SITE}/M/M2Crypto/M2Crypto-${version}.tar.gz" checksum=a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6 post_install() { vlicense LICENCE } python3-M2Crypto_package() { pycompile_module="M2Crypto" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense LICENCE } }