python-flaky: add missing depends, fix short_desc

This commit is contained in:
Alessio Sergi 2018-05-24 19:54:04 +02:00
parent 39963016d0
commit ec9932d38b

View file

@ -1,22 +1,25 @@
# Template file for 'python-flaky' # Template file for 'python-flaky'
pkgname=python-flaky pkgname=python-flaky
version=3.4.0 version=3.4.0
revision=1 revision=2
noarch=yes
wrksrc="${pkgname/python-//}-${version}" wrksrc="${pkgname/python-//}-${version}"
build_style=python-module build_style=python-module
pycompile_modules="flaky" pycompile_modules="flaky"
hostmakedepends="python-setuptools python3-setuptools" hostmakedepends="python-setuptools python3-setuptools"
short_desc="Plugin for nose or py.test that automatically reruns flaky tests" depends="python"
short_desc="Plugin for nose/py.test that automatically reruns flaky tests (Python2)"
maintainer="maxice8 <thinkabit.ukim@gmail.com>" maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://github.com/box/flaky" homepage="https://github.com/box/flaky"
distfiles="${PYPI_SITE}/f/flaky/flaky-${version}.tar.gz" distfiles="${PYPI_SITE}/f/flaky/flaky-${version}.tar.gz"
checksum=4ad7880aef8c35a34ddb394d4fa33047765bca1e3d67d182bf6eba9c8eabf3a2 checksum=4ad7880aef8c35a34ddb394d4fa33047765bca1e3d67d182bf6eba9c8eabf3a2
noarch=yes
python3-flaky_package() { python3-flaky_package() {
noarch=yes noarch=yes
depends="python3"
pycompile_modules="flaky" pycompile_modules="flaky"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3* vmove usr/lib/python3*
} }