void-packages/srcpkgs/python-pluggy/template

37 lines
861 B
Bash

# Template file for 'python-pluggy'
pkgname=python-pluggy
version=0.8.1
revision=1
noarch=yes
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="pluggy"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python3-pytest"
short_desc="Minimalist production ready python2 plugin system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pytest-dev/pluggy"
distfiles="${PYPI_SITE}/p/pluggy/pluggy-${version}.tar.gz"
checksum=8ddc32f03971bfdf900a81961a48ccf2fb677cf7715108f85295c67405798616
do_check() {
python3 -m pytest
}
post_install() {
vlicense LICENSE
}
python3-pluggy_package() {
noarch=yes
pycompile_module="pluggy"
depends="python3"
short_desc="${short_desc/python2/python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}