1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 )
7 COMMIT="ec4032596e3aec987ba29b62cac701608ef3b523"
11 DESCRIPTION="A library for deferring decorator actions"
12 HOMEPAGE="http://www.pylonsproject.org/"
13 #SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14 SRC_URI="https://github.com/Pylons/venusian/archive/${COMMIT}.zip -> ${P}.zip"
18 KEYWORDS="~amd64 ~x86"
20 RESTRICT="!test? ( test )"
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 test? ( dev-python/nose[${PYTHON_USEDEP}]
27 >=dev-python/nose-exclude-0.1.9[${PYTHON_USEDEP}] )
30 S="${WORKDIR}/${PN}-${COMMIT}"
33 # copy the zipfile to the fixtures dir, setup.py doesn't
34 cp "${S}"/venusian/tests/fixtures/zipped.zip "${BUILD_DIR}"/lib/venusian/tests/fixtures/ || die "Failed to cp zipfile.zip"
36 cd "${BUILD_DIR}/lib/venusian"
37 nosetests --exclude-dir=tests/fixtures || die "Tests fail with ${EPYTHON}"