void-packages/srcpkgs/python-pycryptodome/template
2019-06-06 23:50:42 +02:00

38 lines
1 KiB
Bash

# Template file for 'python-pycryptodome'
pkgname=python-pycryptodome
version=3.8.2
revision=1
wrksrc="pycryptodome-${version}"
build_style=python-module
pycompile_module="Crypto"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Python2 package of low-level cryptographic primitives"
maintainer="Wietse Kuipers <wietse@kuiprs.nl>"
license="Public Domain, BSD-2-Clause"
homepage="https://www.pycryptodome.org/"
distfiles="${PYPI_SITE}/p/pycryptodome/pycryptodome-${version}.tar.gz"
checksum=5bc40f8aa7ba8ca7f833ad2477b9d84e1bfd2630b22a46d9bbd221982f8c3ac0
provides="python-crypto-${version}_1"
replaces="python-crypto>=0"
do_check() {
python2 setup.py test
python3 setup.py test
}
post_install() {
vlicense LICENSE.rst
}
python3-pycryptodome_package() {
provides="python3-crypto-${version}_1"
replaces="python3-crypto>=0"
pycompile_module="Crypto"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.rst
}
}