void-packages/srcpkgs/python-argon2/template

33 lines
928 B
Bash

# Template file for 'python-argon2'
pkgname=python-argon2
version=18.3.0
revision=3
wrksrc="argon2_cffi-${version}"
build_style=python-module
pycompile_module="argon2"
hostmakedepends="python-setuptools python3-setuptools python-cffi python3-cffi"
makedepends="libargon2-devel python-devel python3-devel"
depends="python-cffi python-enum34 python-six"
short_desc="CFFI-based Argon2 Bindings for Python2"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://argon2-cffi.readthedocs.io/"
distfiles="${PYPI_SITE}/a/argon2_cffi/argon2_cffi-${version}.tar.gz"
checksum=003f588de43a817af6ecc1c06103fa0801de63849db3cb0f37576bb2da29043d
export ARGON2_CFFI_USE_SYSTEM=1
post_install() {
vlicense LICENSE
}
python3-argon2_package() {
depends="python3-cffi python3-six"
pycompile_module="argon2"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}