commit:     f6d772617c432e5ee771840cc2d6a139fb74b959
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  9 20:14:41 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  9 20:14:41 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d77261

dev-python/testfixtures: add 6.18.5

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/testfixtures/Manifest                   |  1 +
 dev-python/testfixtures/testfixtures-6.18.5.ebuild | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest
index 67558de479e1..d69d9f63bf71 100644
--- a/dev-python/testfixtures/Manifest
+++ b/dev-python/testfixtures/Manifest
@@ -1,2 +1,3 @@
 DIST testfixtures-6.18.3.tar.gz 122142 BLAKE2B 
014cc2245d5fbe0d39310c8e2c21cd5f289d6ec7a6a561d055e86d4cd25b79f1aa535067746219e2382df2aeec050dfa24cdae674636d92ee61016fa9861e705
 SHA512 
e556e7cb28f122526ef19550b1e593b61f01923d0be53951344f917f89b3d4cae29e525ceda3d0290bc18c3641b509dd7236e7b55ae50da0157fe11ca9f04cca
 DIST testfixtures-6.18.4.tar.gz 124910 BLAKE2B 
8c19672903d3b6ba5139b95f1d060c0d71ae8891e8c190a8891fded6d79af3549a91809b73a114f69cf2b0de49740e49a9e38e44981addcd09d7b4c343ea3ced
 SHA512 
2643ddfd7c4be7b514070e2df8e52479ad51f50a8b69507faf36d90bd92aa0201f1c3033eb00e644bac194601b0a9190c02727f18d899629ab09abfa3546ecd7
+DIST testfixtures-6.18.5.tar.gz 124944 BLAKE2B 
6f1431b3e7201a3c12bf683cfcb123329b186f42a64fdfe3ee7897ab0c5e9ba3995deb88934ae59f0d35b64710ac04b421d07f1c496429b18a0b6a03e600885d
 SHA512 
4d4ec7295bb056102995dc1c872b86059109b114ab921769d3aa2c2de96a3789fef30558f51826655b6d2d668ea1b1bc9f161a4584aab628f59d4da1fa95940e

diff --git a/dev-python/testfixtures/testfixtures-6.18.5.ebuild 
b/dev-python/testfixtures/testfixtures-6.18.5.ebuild
new file mode 100644
index 000000000000..8755772cbbc7
--- /dev/null
+++ b/dev-python/testfixtures/testfixtures-6.18.5.ebuild
@@ -0,0 +1,51 @@
+# 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..10} )
+
+inherit distutils-r1
+
+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";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="
+       test? (
+               $(python_gen_impl_dep sqlite)
+               dev-python/django[${PYTHON_USEDEP}]
+               dev-python/pytest-django[${PYTHON_USEDEP}]
+               dev-python/sybil[${PYTHON_USEDEP}]
+               >=dev-python/twisted-18[${PYTHON_USEDEP}]
+               dev-python/zope-component[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       # kill weird way of declaring build deps
+       sed -e '/build=/d' -i setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       local -x PYTHONPATH="."
+       local -x DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
+
+       local EPYTEST_DESELECT=(
+               # TODO
+               
testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_missing
+               
testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_present
+       )
+
+       epytest
+}

Reply via email to