mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42027 Signed-off-by: Sam James <sam@gentoo.org>
39 lines
820 B
Bash
39 lines
820 B
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="A tiny test runner that outputs TAP results to standard output"
|
|
HOMEPAGE="
|
|
https://github.com/remko/pycotap/
|
|
https://pypi.org/project/pycotap/
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv x86"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/pycotap-1.3.1-fix-python3.13-tests.patch
|
|
)
|
|
|
|
distutils_enable_tests unittest
|
|
|
|
python_prepare_all() {
|
|
distutils-r1_python_prepare_all
|
|
|
|
sed -i -e "/data_files =/d" setup.py || die
|
|
|
|
# Fixup test output assumptions for unittest
|
|
sed -i -e 's/__main__\.TAPTestRunnerTest/test.TAPTestRunnerTest/' test/test.py || die
|
|
}
|
|
|
|
python_test() {
|
|
eunittest test
|
|
}
|