net-proxy/mitmproxy-rs: Bump to 0.12.8

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-11-25 09:48:24 +01:00
parent 1f7dee7e4a
commit 55757bc131
No known key found for this signature in database
GPG Key ID: 8E32347AF4055AE8
2 changed files with 55 additions and 0 deletions

View File

@ -1,3 +1,5 @@
DIST boringtun-2f3c85f5c4a601018c10b464b1ca890d9504bf6e.gh.tar.gz 219297 BLAKE2B af42c888259ce9d0d36c8b6925459e86fac14059e6b8a3532783050d77627f91c4cd7a0b61bd290e86bbe37ab155d9f798f5478b0f09650dabba08cdc9f60696 SHA512 485675e3fa9317d09814a67162199691df87d04b970c4f69536607584b07f6ab8d2379ef89b22d674e569b8a874a1298bc59a8537c077c81658594bbd502470e
DIST mitmproxy_rs-0.12.7-crates.tar.xz 49031076 BLAKE2B 7ce59d1b03fb67543832d0482909568502778a952d91f7d233005542368c9bf4cfc9d6666e9b41fa148d45c4153a9056cdd27f2cbcb56154a787c8780a48eed1 SHA512 252fb9941b74ad02b53c66ad2f9527df98c0ccd205e6d5913869b5a1405bc3ff05994dce31ed2bc0e8a5ec0b2e33efe85f7fdd9634c3511244b1cdb870f6ec94
DIST mitmproxy_rs-0.12.7.tar.gz 1321695 BLAKE2B f171b83290faa3301fa9a62104e7bc717f92e2a6b8dbe5941f9d1fc532fac052f39ee416a692c1c181a4597ba3933b33343b1967b97e931c30277a06afa8e37a SHA512 416f6e2dd1648cc46cb6a34a0192fbfac0c6c4b4f7f1b5d121c510c38dfdf1ded0e9bfcdb8be2eb81f55b9e98e93862b0b42312248cac1ce6d81d8b05b5e4f3f
DIST mitmproxy_rs-0.12.8-crates.tar.xz 49230272 BLAKE2B 9bd32b59d82a6e1d28701373427600d774caecefc406d4646c601f68ae05c46c1d857b00a4a018f6ab15c864f6984377153b99f306024560195b44ef45d0e75c SHA512 b71360be285f4f81feed8cbd283ed00928e8e09d5fa7ba99ecf3a9c2a7ee4a137ca4a7357579925b4e98080f0fa756bc78a58b92badb19fbc7e8992fc63bef4c
DIST mitmproxy_rs-0.12.8.tar.gz 1320939 BLAKE2B 7e33797c0b51919b8f1d999377d9790275854c205bcc523fdeead990813dd39de211474294f3285141dbb93f9456481f5c7487a0e5fb93f3814cce90e6035cef SHA512 b720ad3b4d3a681d2914a2b2555b7ca348846459bf07278c219de59f789e8ebb3685f2aead4c6f737235f604e3990f7044547d4e15026fbfd08435f992b5fde3

View File

@ -0,0 +1,53 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATvES=""
declare -A GIT_CRATES=(
[boringtun]='https://github.com/cloudflare/boringtun;2f3c85f5c4a601018c10b464b1ca890d9504bf6e;boringtun-%commit%/boringtun'
)
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( python3_{12..14} )
RUST_MIN_VER=1.89.0
RUST_MAX_VER=1.90.0
inherit cargo distutils-r1 pypi
DESCRIPTION="mitmproxy's Rust bits"
HOMEPAGE="
https://github.com/mitmproxy/mitmproxy_rs/
https://pypi.org/project/mitmproxy-rs/
"
SRC_URI+="
${CARGO_CRATE_URIS}
https://github.com/gentoo-crate-dist/mitmproxy_rs/releases/download/v${PV}/${P/-/_}-crates.tar.xz
"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC
LGPL-3+ MIT Unicode-3.0 WTFPL-2 ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
~net-proxy/mitmproxy-linux-${PV}[${PYTHON_USEDEP}]
"
src_prepare() {
distutils-r1_src_prepare
# replace upstream crate substitution with our crate substitution, sigh
local bor_dep=$(grep ^boringtun "${ECARGO_HOME}"/config.toml || die)
sed -i -e "/boringtun/s;^.*$;${bor_dep};" Cargo.toml || die
}
python_test() {
cargo_src_test --manifest-path mitmproxy-rs/Cargo.toml
}