vp-build/srcpkgs/python-nose2/template

38 lines
1.2 KiB
Bash

# Template file for 'python-nose2'
pkgname=python-nose2
version=0.7.4
revision=2
noarch=yes
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="nose2"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-coverage python-six python-mock"
short_desc="The next generation of nicer testing (Python2)"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/nose-devs/nose2"
distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz"
checksum=954a62cfb2d2ac06dad32995cbc822bf00cc11e20d543963515932fd4eff33fa
alternatives="nose2:nose2:/usr/bin/python2-nose2"
post_install() {
vlicense license.txt
# XXX override the default naming scheme
cp -a ${DESTDIR}/usr/bin/nose2 ${DESTDIR}/usr/bin/python3-nose2
mv ${DESTDIR}/usr/bin/nose2 ${DESTDIR}/usr/bin/python2-nose2
}
python3-nose2_package() {
noarch=yes
pycompile_module="nose2"
short_desc="${short_desc/Python2/Python3}"
depends="python3-setuptools python3-coverage python3-six"
alternatives="nose2:nose2:/usr/bin/python3-nose2"
pkg_install() {
vmove usr/bin/python3-nose2
vmove usr/lib/python3*
vlicense license.txt
}
}