void-packages/srcpkgs/python-pycryptodome/template
maxice8 f2e8114768 python-pycryptodome: update to 3.4.12.
Closes: #11184 [via git-merge-pr]
2018-03-05 23:01:15 +01:00

35 lines
1,006 B
Bash

# Template file for 'python-pycryptodome'
pkgname=python-pycryptodome
version=3.4.12
revision=1
wrksrc="pycryptodome-${version}"
build_style=python-module
pycompile_module="Crypto"
conflicts="python-crypto>=0"
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>"
homepage="https://www.pycryptodome.org/"
license="Public Domain, 2-clause-BSD"
distfiles="https://github.com/Legrandin/pycryptodome/archive/v${version}.tar.gz"
checksum=a58046e2aa416d16a30c54c5f985847fc3e58a8c79c5215048c2be0fd8451dbc
do_check() {
# This packages runs 22704 as of version 3.4.12
python3 setup.py test
}
post_install() {
vlicense LICENSE.rst LICENSE
}
python3-pycryptodome_package() {
pycompile_module="Crypto"
conflicts="python3-crypto>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.rst LICENSE
}
}