Files
gentoo/dev-python/testfixtures/testfixtures-12.2.0.ebuild
Michał Górny 1fa7c22852 dev-python/testfixtures: Bump to 12.2.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2026-06-21 04:46:52 +02:00

58 lines
1.3 KiB
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_VERIFY_REPO=https://github.com/simplistix/testfixtures
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="A collection of helpers and mock objects for unit tests and doc tests"
HOMEPAGE="
https://pypi.org/project/testfixtures/
https://github.com/simplistix/testfixtures/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/typing-extensions-4.12[${PYTHON_USEDEP}]
' 3.12)
"
BDEPEND="
test? (
$(python_gen_impl_dep sqlite)
dev-python/django[${PYTHON_USEDEP}]
>=dev-python/sybil-6[${PYTHON_USEDEP}]
>=dev-python/twisted-18[${PYTHON_USEDEP}]
sys-libs/timezone-data
)
"
EPYTEST_PLUGINS=( pytest-django )
distutils_enable_tests pytest
python_test() {
local -x PYTHONPATH="."
local -x DJANGO_SETTINGS_MODULE=tests.test_django.settings
local EPYTEST_DESELECT=(
# TODO
tests/test_shouldwarn.py::ShouldWarnTests::test_filter_missing
tests/test_shouldwarn.py::ShouldWarnTests::test_filter_present
)
local EPYTEST_IGNORE=()
if ! has_version "dev-python/twisted[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=(
tests/test_twisted.py
)
fi
epytest
}