diff options
author | 2020-04-28 19:23:14 +0200 | |
---|---|---|
committer | 2020-04-28 19:23:14 +0200 | |
commit | 2a3d27c98ca429625ab6e7eac0f0b0f9fc124581 (patch) | |
tree | 7ddef8f60a8a3f6e26299da0b2daca0db8874c62 /dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild | |
parent | dev-python/pydantic: Data parsing and validation using type hints (diff) | |
download | guru-2a3d27c98ca429625ab6e7eac0f0b0f9fc124581.tar.gz guru-2a3d27c98ca429625ab6e7eac0f0b0f9fc124581.tar.bz2 guru-2a3d27c98ca429625ab6e7eac0f0b0f9fc124581.zip |
dev-python/pytest-toolbox: Numerous useful plugins for pytest
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild')
-rw-r--r-- | dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild b/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild new file mode 100644 index 000000000..8a8594540 --- /dev/null +++ b/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Numerous useful plugins for pytest" +HOMEPAGE="https://github.com/samuelcolvin/pytest-toolbox" +SRC_URI="https://github.com/samuelcolvin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +distutils_enable_tests pytest + +DEPEND="test? ( + dev-python/isort[${PYTHON_USEDEP}] + dev-python/pydantic[${PYTHON_USEDEP}] + dev-python/pytest-isort[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] +)" + +RDEPEND=" + >=dev-python/pytest-3.5.0[${PYTHON_USEDEP}] + <=dev-python/pytest-5[${PYTHON_USEDEP}] +" + +python_prepare_all() { + # pytest.warning_types.PytestAssertRewriteWarning: asserting the value None, please use "assert is None" + sed -i -e 's:test_is_uuid_false:_&:' \ + -e 's:test_any_int_false:_&:' \ + tests/test_comparison.py || die + + distutils-r1_python_prepare_all +} |