dev-python/proxy-py: new package, add 2.4.10

Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev committed 2026-09-20 17:36:31 +03:00
1 parent 9f5404bcbd
commit 35d389955b
3 files changed
+80

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST proxy-py-2.4.10.tar.gz 2250608 BLAKE2B 47dd53aa9c990652ef80f9a0ef5320f79dff1f0b0c8251381329036c8404d020b1acc7bb39d2509f98943c4a0a4fe79058447aa5a0ef4e289665353abcb666a8 SHA512 14804cf35bc317f3e0b17379b494e32cfc29ae79fcf7c917d6b2344d5de8147aa072b5232d5566ebeff151cfed23f227c9e94dbe69d9ce328782a41f9fd522e7
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Pavel Sobolev</name>
<email>contact@paveloom.dev</email>
</maintainer>
<upstream>
<bugs-to>https://github.com/abhinavsingh/proxy.py/issues</bugs-to>
<remote-id type="github">abhinavsingh/proxy.py</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,67 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..15} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Python proxy framework"
HOMEPAGE="https://github.com/abhinavsingh/proxy.py"
SRC_URI="https://github.com/abhinavsingh/proxy.py/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/proxy.py-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
test? (
dev-python/httpx[${PYTHON_USEDEP}]
)
"
python_prepare_all() {
sed -e '/--cov/d' \
-e '/--no-cov-on-fail/d' \
-e '/--strict-markers/d' \
-e '/-p pytest_cov/d' \
-i pytest.ini || die
sed -e 's/proxy = p/proxy-py = p/' \
-i setup.cfg || die
distutils-r1_python_prepare_all
}
EPYTEST_DESELECT=(
tests/http/proxy/test_http2.py::TestHttp2WithProxy::test_http2_via_proxy
tests/http/proxy/test_http_proxy.py::TestHttpProxyPlugin::test_proxy_plugin_before_upstream_connection_can_teardown
tests/http/proxy/test_http_proxy.py::TestHttpProxyPlugin::test_proxy_plugin_on_and_before_upstream_connection
tests/http/test_client.py::TestClient::test_client
tests/http/test_client.py::TestClient::test_http
tests/http/web/test_web_server.py::TestStaticWebServerPlugin::test_static_web_server_serves
tests/http/web/test_web_server.py::TestStaticWebServerPlugin::test_static_web_server_serves_404
tests/http/web/test_web_server.py::TestWebServerPlugin::test_default_web_server_returns_404
tests/http/web/test_web_server.py::TestWebServerPluginWithPacFilePlugin::test_pac_file_served_from_disk
tests/integration/test_integration.py::test_https_integration
tests/integration/test_integration.py::test_integration
tests/integration/test_integration.py::test_modify_chunk_response_integration
tests/integration/test_integration.py::test_modify_post_response_integration
tests/plugin/test_http_proxy_plugins_with_tls_interception.py::TestHttpProxyPluginExamplesWithTlsInterception::test_man_in_the_middle_plugin
tests/plugin/test_http_proxy_plugins_with_tls_interception.py::TestHttpProxyPluginExamplesWithTlsInterception::test_modify_post_data_plugin
tests/test_grout.py::TestGrout::test_grout
tests/test_main.py::TestProxyContextManager::test_proxy_context_manager
)
EPYTEST_IGNORE=(
tests/http/exceptions/test_http_proxy_auth_failed.py
tests/http/test_protocol_handler.py
tests/plugin/test_http_proxy_plugins.py
)
EPYTEST_PLUGINS=( pytest-asyncio pytest-mock )
distutils_enable_tests pytest