void-packages/srcpkgs/python-pluggy/template

37 lines
861 B
Bash

# Template file for 'python-pluggy'
pkgname=python-pluggy
version=0.8.0
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=447ba94990e8014ee25ec853339faf7b0fc8050cdc3289d4d71f7f410fb90095
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
}
}