mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 05:11:05 +02:00
mitmproxy: python 3.10 target
This commit is contained in:
parent
f6778b53ce
commit
2bb03f1d77
8 changed files with 178 additions and 0 deletions
1
dev-python/ldap3/Manifest
Normal file
1
dev-python/ldap3/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST ldap3-2.8.1.tar.gz 961648 BLAKE2B d6cbc52512efbe4f6fe5e7d19ee2ce1af3e03a8d6d08d2235eeff0f00c61fd12583c4b9fb452206ba161961c3438d109fa106a50a0edc858c24f5cd6261b2561 SHA512 f37e76e1008c990290285a757def6fe70e227393fbbdf84eb1130d5fdfd17db724c544848cc424ca7831f8cc9e8d25407fc139981ebd10818064f588adbafebf
|
||||
26
dev-python/ldap3/ldap3-2.8.1.ebuild
Normal file
26
dev-python/ldap3/ldap3-2.8.1.ebuild
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A strictly RFC 4511 conforming LDAP V3 pure Python client"
|
||||
HOMEPAGE="
|
||||
https://github.com/cannatag/ldap3/
|
||||
https://pypi.org/project/ldap3/"
|
||||
SRC_URI="https://github.com/cannatag/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pyasn1-0.4.8[${PYTHON_USEDEP}]
|
||||
"
|
||||
# tests require a ldap server and extra configuration
|
||||
RESTRICT="test"
|
||||
|
||||
distutils_enable_tests nose
|
||||
1
dev-python/parver/Manifest
Normal file
1
dev-python/parver/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST parver-0.3.1.tar.gz 29110 BLAKE2B da444a77907beac0bebd2dba812c8843052e27de1b8b802b5bdd37feb4ffe1cfdcabb84a91b6e6fe21275bce22e3b43736617df756570c6438af7ffd81a1ba87 SHA512 2ea7eb7be0c58657f5261d7b4729da6caaf2fac67db3fc3f36d29627bdbeba45f6ecb0e4bb251575b621908eb1ff5fa5ede5fc2ef0e041156dcc00548fd34360
|
||||
15
dev-python/parver/metadata.xml
Normal file
15
dev-python/parver/metadata.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="github">RazerM/parver</remote-id>
|
||||
<doc>https://parver.readthedocs.io/en/latest/</doc>
|
||||
<bugs-to>https://github.com/RazerM/parver/issues</bugs-to>
|
||||
<remote-id type="pypi">parver</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
37
dev-python/parver/parver-0.3.1.ebuild
Normal file
37
dev-python/parver/parver-0.3.1.ebuild
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Parse and manipulate version numbers"
|
||||
HOMEPAGE="https://github.com/RazerM/parver https://pypi.org/project/parver/"
|
||||
SRC_URI="https://github.com/RazerM/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/arpeggio-1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/attrs-19.2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
dev-python/pretend[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# unlock dependencies
|
||||
sed -i -e 's:~=:>=:g' setup.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
1
net-proxy/mitmproxy/Manifest
Normal file
1
net-proxy/mitmproxy/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST mitmproxy-7.0.4.tar.gz 27312748 BLAKE2B a23db472adab33db615b0daa93694211450e8899885dc75601d40a4964cc505437db6a106622eb8051263db23280261134937b6567482dd584eed29cc592e42b SHA512 4224b44e609f84b974b5419c6ceb576845957968c786ee437bffb5fa5df685ce0712d5ef8c402d40c568406242f44692cc7f04037fadd19ecece8b112d73b7ae
|
||||
28
net-proxy/mitmproxy/metadata.xml
Normal file
28
net-proxy/mitmproxy/metadata.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>matt@offtopica.uk</email>
|
||||
<name>Matt Smith</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
mitmproxy is your swiss-army knife for debugging,
|
||||
testing, privacy measurements, and penetration
|
||||
testing. It can be used to intercept, inspect, modify
|
||||
and replay web traffic such as HTTP/1, HTTP/2,
|
||||
WebSockets, or any other SSL/TLS-protected
|
||||
protocols. You can prettify and decode a variety of
|
||||
message types ranging from HTML to Protobuf, intercept
|
||||
specific messages on-the-fly, modify them before they
|
||||
reach their destination, and replay them to a client
|
||||
or server later on.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">mitmproxy/mitmproxy</remote-id>
|
||||
<remote-id type="pypi">mitmproxy</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
69
net-proxy/mitmproxy/mitmproxy-7.0.4.ebuild
Normal file
69
net-proxy/mitmproxy/mitmproxy-7.0.4.ebuild
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
|
||||
HOMEPAGE="https://mitmproxy.org/"
|
||||
SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/brotli-1.0.0[python,${PYTHON_USEDEP}]
|
||||
>=dev-python/asgiref-3.2.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/blinker-1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/certifi-2015.11.20.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-3.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-1.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/h2-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/hyperframe-6.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/kaitaistruct-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/ldap3-2.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/passlib-1.6.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-python-3.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/publicsuffix-2.20190205[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyasn1-0.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyparsing-2.4.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyperclip-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ruamel-yaml-0.16[${PYTHON_USEDEP}]
|
||||
>=dev-python/sortedcontainers-2.3.0[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/urwid-2.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/wsproto-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/zstandard-0.11.0[${PYTHON_USEDEP}]
|
||||
dev-libs/openssl:0
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/hypothesis-5.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/parver-0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-asyncio-0.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# loosen dependencies
|
||||
sed -i \
|
||||
-e '/>/s/>.*/",/g' \
|
||||
-e '/python_requires/d' \
|
||||
setup.py || die
|
||||
|
||||
# remove failing test
|
||||
sed -i 's/test_get_version/_&/g' test/mitmproxy/test_version.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
Loading…
Reference in a new issue