2023-01-15 18:24:23 +03:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2022-05-20 11:55:04 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2023-01-15 18:24:23 +03:00
|
|
|
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
2022-05-20 11:55:04 +03:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2022-05-23 13:09:38 +03:00
|
|
|
|
2023-03-18 09:45:59 +03:00
|
|
|
inherit distutils-r1 pypi
|
2022-05-20 11:55:04 +03:00
|
|
|
|
|
|
|
DESCRIPTION="python-requests HTTP exchanges recorder"
|
2022-05-23 13:09:38 +03:00
|
|
|
HOMEPAGE="
|
|
|
|
https://github.com/betamaxpy/betamax/
|
|
|
|
https://pypi.org/project/betamax/
|
|
|
|
"
|
2022-05-20 11:55:04 +03:00
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
2022-06-23 10:35:19 +03:00
|
|
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
|
2022-05-20 11:55:04 +03:00
|
|
|
|
2022-05-23 13:09:38 +03:00
|
|
|
RDEPEND="
|
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
2022-05-20 11:55:04 +03:00
|
|
|
|
|
|
|
PATCHES=(
|
2022-05-23 13:09:38 +03:00
|
|
|
"${FILESDIR}/${P}-pytest.patch"
|
2022-05-20 11:55:04 +03:00
|
|
|
)
|
|
|
|
|
2022-05-23 13:09:38 +03:00
|
|
|
EPYTEST_DESELECT=(
|
|
|
|
# Internet
|
|
|
|
tests/integration/test_hooks.py
|
|
|
|
tests/integration/test_placeholders.py
|
|
|
|
tests/integration/test_record_modes.py::TestRecordOnce::test_records_new_interaction
|
|
|
|
tests/integration/test_record_modes.py::TestRecordOnce::test_replays_response_from_cassette
|
|
|
|
tests/integration/test_record_modes.py::TestRecordNewEpisodes
|
|
|
|
tests/integration/test_record_modes.py::TestRecordNewEpisodesCreatesCassettes
|
|
|
|
tests/integration/test_record_modes.py::TestRecordAll
|
|
|
|
tests/integration/test_unicode.py
|
|
|
|
tests/regression/test_gzip_compression.py
|
|
|
|
tests/regression/test_requests_2_11_body_matcher.py
|
|
|
|
)
|