void-packages/srcpkgs/python-pyasn1-modules/template
Peter Bui 6dbed2ab4e python-pyasn1-modules: update to 0.2.5.
Closes #11871.

Signed-off-by: Enno Boland <gottox@voidlinux.org>
2019-05-23 10:43:17 +02:00

38 lines
998 B
Bash

# Template file for 'python-pyasn1-modules'
pkgname=python-pyasn1-modules
version=0.2.5
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="pyasn1_modules"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-pyasn1"
checkdepends="python-pyasn1 python3-pyasn1"
short_desc="Collection of ASN.1-based protocols modules (Python2)"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="BSD-2-Clause"
homepage="https://github.com/etingof/pyasn1-modules"
distfiles="${PYPI_SITE}/p/pyasn1-modules/pyasn1-modules-${version}.tar.gz"
checksum=ef721f68f7951fab9b0404d42590f479e30d9005daccb1699b0a51bb4177db96
do_check() {
python setup.py test
python3 setup.py test
}
post_install() {
vlicense LICENSE.txt
}
python3-pyasn1-modules_package() {
archs=noarch
depends="python3-pyasn1"
pycompile_module="pyasn1_modules"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}