void-packages/srcpkgs/python-argon2/template

32 lines
966 B
Bash

# Template file for 'python-argon2'
pkgname=python-argon2
version=19.2.0
revision=1
wrksrc="argon2-cffi-${version}"
build_style=python-module
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/"
changelog="https://raw.githubusercontent.com/hynek/argon2-cffi/master/CHANGELOG.rst"
distfiles="https://github.com/hynek/argon2-cffi/archive/${version}.tar.gz"
checksum=b7ad06a32aba8e795830c0248f8e6c464b7f3037442322937552a5e8b6013b7a
export ARGON2_CFFI_USE_SYSTEM=1
post_install() {
vlicense LICENSE
}
python3-argon2_package() {
depends="python3-cffi python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}