void-packages/srcpkgs/python-pytest-capturelog/template

32 lines
951 B
Bash

# Template file for 'python-pytest-capturelog'
pkgname=python-pytest-capturelog
version=0.7
revision=1
wrksrc="${pkgname/python-/}-${version}"
build_style=python-module
pycompile_module="pytest_capturelog.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-py"
short_desc="Plugin for py.test to capture log messages for Python2"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="http://bitbucket.org/memedough/pytest-capturelog/overview"
distfiles="${PYPI_SITE}/p/${pkgname/python-/}/${pkgname/python-/}-${version}.tar.gz"
checksum=b6e8d5189b39462109c2188e6b512d6cc7e66d62bb5be65389ed50e96d22000d
noarch=yes
post_install() {
vlicense "${FILESDIR}/LICENSE.txt"
}
python3-pytest-capturelog_package() {
noarch=yes
pycompile_module="pytest_capturelog.py"
short_desc="${short_desc/Python2/Python3}"
depends="python3-py"
pkg_install() {
vmove usr/lib/python3*
vlicense "${FILESDIR}/LICENSE.txt"
}
}