mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pymacaroons: enable tests
This enables majority of available tests except of those depending on too old dev-python/hypothesis version. Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/26375 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -18,12 +18,22 @@ SRC_URI="https://github.com/ecordell/pymacaroons/archive/v${PV}.tar.gz -> ${P}.g
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
# tests are incompatible with dev-python/hypothesis::gentoo. This package needs
|
||||
# <2.0.0, because needed hypothesis.specifiers module was removed in 2.0.0.
|
||||
RESTRICT="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pynacl[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
# The package also contains property_tests, however, they are incompatible
|
||||
# with dev-python/hypothesis in gentoo. The package requires too old version.
|
||||
"${EPYTHON}" -m nose -v tests/functional_tests || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user