diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/betamax | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/betamax')
-rw-r--r-- | dev-python/betamax/Manifest | 3 | ||||
-rw-r--r-- | dev-python/betamax/betamax-0.8.1.ebuild | 32 | ||||
-rw-r--r-- | dev-python/betamax/files/betamax-0.8.1-tests.patch | 20 |
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/betamax/Manifest b/dev-python/betamax/Manifest index 1dabb76fd9d4..6a67b5e3be06 100644 --- a/dev-python/betamax/Manifest +++ b/dev-python/betamax/Manifest @@ -1,3 +1,6 @@ +AUX betamax-0.8.1-tests.patch 867 BLAKE2B d161db0b79eff7591bf87cf256a50357e1d82f7eeb0fdf39c27be287c97bf6a536a4e62defd173305ba598f388f2b49d22545443c6fcb589f66988930ae29a55 SHA512 001b26d84e4a02b242ee90b36df0a30c9c4890623191655a8eae5a87e106679197fa8090354b52a72ad07da97666190ebb3a7dcb9b4ffba7b9bea9c18bfed115 DIST betamax-0.8.0.tar.gz 78398 BLAKE2B cc9546eb028343621ef47a9cb7992f1d3eef4a2b6837cc8b670ff7d0313020def203ff06bf1e21c2d4ef26932df65e71562110b14bf27fc5c1a6ca3ba9023f54 SHA512 52b330747b6add52390b50dd63c05851adc01ccd238fdb5c3401efdfc26be363a3f61145dc0e1f3cc43ff520e1457e33fa47952d2929c7c3e12c3e2612621f95 +DIST betamax-0.8.1.tar.gz 77526 BLAKE2B 2ce88326c5ef80082908912c4b14f149793c4457c47446ebcabaaffaa6b0ee64528096acc6bdd868fce0fad3d10ad66697cad5dc422c15b324e1cc9ae20eafa6 SHA512 89bfb56cf4004a70ec8c1f2342cfa0e02f850b8ed80b67f8b2b02c1a2093e8ac1cf1b9980354551e9d3a21fadde0d77d717f1559487024941973cd80bd451734 EBUILD betamax-0.8.0.ebuild 765 BLAKE2B 6f19eeebc83e10b1651bdab08dc9f23963632c17a945471d4d0b9bd5cbda204f5739a5e8ca2849a62a9383cd674dc4054e0cf1afd0e695f4e0e0a2d8c58fe061 SHA512 1a877d6715b15eef9c03421aaa2c9cdb536071be8aa92b72b14fa97dc88a54d8f6bbc5279404f300dd1e26b1919224e10f177b6f12e0a4b4d29de42f3378b17f +EBUILD betamax-0.8.1.ebuild 770 BLAKE2B 1503dc793b90ecd1202e1545527a8321e82e3d6d98e960324731f50dbb62faa67ca326361e060832a6d0e60dc1e19784047e03ddf277278f0c2296027940989e SHA512 712354730bd18f24711115b2f0ba35b2cc52ccddcd40b2209f250b917cc636f8ca9026db10cd7f7b09a1144cd3968c6ebf9290b862ff35e96584757d47d03710 MISC metadata.xml 218 BLAKE2B 086fdcf7b63ca7bd6c58e861d717bb375e1cd372eff26d5d2eeeb176d8c5e6f10e653562abafb50eae7d7508f8e3d421b87e6a749acd0490308672828d0da697 SHA512 4558fee4c51117e21b1f42ca3edbdf1195ed297db798d6bfa0e5fbb7019654a187422b0abde7af5d800caffed66d1e55e4280e8be602bad591424d9776c46781 diff --git a/dev-python/betamax/betamax-0.8.1.ebuild b/dev-python/betamax/betamax-0.8.1.ebuild new file mode 100644 index 000000000000..f5e096379c01 --- /dev/null +++ b/dev-python/betamax/betamax-0.8.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="python-requests HTTP exchanges recorder" +HOMEPAGE="https://github.com/sigmavirus24/betamax" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc ~x86" +IUSE="test" + +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) + )" + +# Tests require Internet access +RESTRICT=test + +PATCHES=( + "${FILESDIR}/betamax-0.8.1-tests.patch" +) + +distutils_enable_tests pytest diff --git a/dev-python/betamax/files/betamax-0.8.1-tests.patch b/dev-python/betamax/files/betamax-0.8.1-tests.patch new file mode 100644 index 000000000000..19da7d108efd --- /dev/null +++ b/dev-python/betamax/files/betamax-0.8.1-tests.patch @@ -0,0 +1,20 @@ +diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py +index 387d9ce..f0bdc3b 100644 +--- a/tests/unit/test_fixtures.py ++++ b/tests/unit/test_fixtures.py +@@ -23,6 +23,7 @@ class TestPyTestFixture(unittest.TestCase): + def tearDown(self): + self.patched_betamax.stop() + ++ @pytest.mark.skip(reason="broken with newer pytest version") + def test_adds_stop_as_a_finalizer(self): + # Mock a pytest request object + request = mock.MagicMock() +@@ -33,6 +34,7 @@ class TestPyTestFixture(unittest.TestCase): + assert request.addfinalizer.called is True + request.addfinalizer.assert_called_once_with(self.mocked_betamax.stop) + ++ @pytest.mark.skip(reason="broken with newer pytest version") + def test_auto_starts_the_recorder(self): + # Mock a pytest request object + request = mock.MagicMock() |