diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-05-18 13:05:42 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-05-18 13:15:54 +0200 |
commit | 0becc525bf4be56be8587b0ca907a5ad22ee3059 (patch) | |
tree | 3630276f4bf5ce06b34ac7323b31ab65d252e716 /dev-python/betamax | |
parent | dev-python/backoff: enable py3.11 (diff) | |
download | gentoo-0becc525bf4be56be8587b0ca907a5ad22ee3059.tar.gz gentoo-0becc525bf4be56be8587b0ca907a5ad22ee3059.tar.bz2 gentoo-0becc525bf4be56be8587b0ca907a5ad22ee3059.zip |
dev-python/betamax: update EAPI 7 -> 8
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/betamax')
-rw-r--r-- | dev-python/betamax/betamax-0.8.1-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/betamax/betamax-0.8.1-r1.ebuild b/dev-python/betamax/betamax-0.8.1-r1.ebuild new file mode 100644 index 000000000000..9bfbc639f340 --- /dev/null +++ b/dev-python/betamax/betamax-0.8.1-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} pypy3 ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="python-requests HTTP exchanges recorder" +HOMEPAGE="https://github.com/betamaxpy/betamax" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/betamax-0.8.1-tests.patch" +) + +distutils_enable_tests pytest + +src_prepare() { + rm tests/integration/test_hooks.py || die + rm tests/integration/test_placeholders.py || die + sed -e 's:test_records:_&:' \ + -e 's:test_replaces:_&:' \ + -e 's:test_replays:_&:' \ + -e 's:test_creates:_&:' \ + -i tests/integration/test_record_modes.py || die + rm tests/integration/test_unicode.py || die + rm tests/regression/test_gzip_compression.py || die + rm tests/regression/test_requests_2_11_body_matcher.py || die + distutils-r1_src_prepare +} |