diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-10-26 14:45:03 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-10-26 14:45:34 +0300 |
commit | fce96c706e4a8af3ef4f1ec3528d435a0a8bfcfe (patch) | |
tree | ed23ffe8f83813b5ac2009eb77d5f673a4e53ac2 /dev-python/nose/nose-1.3.7_p20221026.ebuild | |
parent | sys-kernel/vanilla-sources: add 6.0.5, drop 6.0.3 (diff) | |
download | gentoo-fce96c706e4a8af3ef4f1ec3528d435a0a8bfcfe.tar.gz gentoo-fce96c706e4a8af3ef4f1ec3528d435a0a8bfcfe.tar.bz2 gentoo-fce96c706e4a8af3ef4f1ec3528d435a0a8bfcfe.zip |
dev-python/nose: add 1.3.7_p20221026
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/nose/nose-1.3.7_p20221026.ebuild')
-rw-r--r-- | dev-python/nose/nose-1.3.7_p20221026.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/nose/nose-1.3.7_p20221026.ebuild b/dev-python/nose/nose-1.3.7_p20221026.ebuild new file mode 100644 index 000000000000..83b354dadcd7 --- /dev/null +++ b/dev-python/nose/nose-1.3.7_p20221026.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +EGIT_COMMIT="8def1b4dcf2ef6b4a34bffdfacea0018a78b06b6" +DESCRIPTION="Unittest extension with automatic test suite discovery and easy test authoring" +HOMEPAGE=" + https://pypi.org/project/nose/ + https://nose.readthedocs.io/en/latest/ + https://github.com/nose-devs/nose +" +SRC_URI=" + https://github.com/arthurzam/nose/archive/${EGIT_COMMIT}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + !hppa? ( dev-python/coverage[${PYTHON_USEDEP}] ) + ' python3_{8..10} pypy3) + $(python_gen_cond_dep ' + dev-python/twisted[${PYTHON_USEDEP}] + ' python3_{8..10}) + ) +" + +src_prepare() { + # failing to find configuration file + sed -e 's/test_cover_options_config_file/_&/' \ + -i unit_tests/test_cover_plugin.py || die + + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" -m nose -v -a "!network" || + die "Tests fail with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + use examples && dodoc -r examples +} |