void-packages/srcpkgs/python-argon2/template
2018-10-15 18:47:18 +02:00

32 lines
940 B
Bash

# Template file for 'python-argon2'
pkgname=python-argon2
version=18.3.0
revision=2
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="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
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
}
}