New package: python3-mitmproxy-rs-0.11.1

this package subsumes python3-mitmproxy_wireguard, so it can be removed
and replaces
This commit is contained in:
classabbyamp 2024-12-25 18:02:01 -05:00 committed by classabbyamp
parent 786b86d3bc
commit 3c6440ed55
2 changed files with 20 additions and 27 deletions

View File

@ -0,0 +1,20 @@
# Template file for 'python3-mitmproxy-rs'
pkgname=python3-mitmproxy-rs
version=0.11.1
revision=1
build_style=python3-pep517
build_helper="rust"
hostmakedepends="maturin cargo"
makedepends="rust-std python3"
short_desc="Rust bits in mitmproxy"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/mitmproxy/mitmproxy_rs"
changelog="https://github.com/mitmproxy/mitmproxy_rs/raw/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/m/mitmproxy_rs/mitmproxy_rs-${version}.tar.gz"
checksum=a77c022bc0563f9d56fa0809a27013ed2fb5d3145c599098cb1175e7326e7829
replaces="python3-mitmproxy_wireguard>=0"
post_install() {
vlicense LICENSE
}

View File

@ -1,27 +0,0 @@
# Template file for 'python3-mitmproxy_wireguard'
pkgname=python3-mitmproxy_wireguard
version=0.1.19
revision=3
build_style=python3-pep517
build_helper=rust
hostmakedepends="cargo maturin"
makedepends="python3-devel rust-std"
depends="python3"
short_desc="WireGuard frontend for mitmproxy"
maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
license="MIT"
homepage="https://github.com/decathorpe/mitmproxy_wireguard"
changelog="https://raw.githubusercontent.com/decathorpe/mitmproxy_wireguard/main/CHANGELOG.md"
distfiles="https://github.com/decathorpe/mitmproxy_wireguard/archive/${version}.tar.gz"
checksum=749b5b45222b629f4cced154cc4bf70ba7ae3061db02e2ea0ae45a4ae6246463
do_build() {
# Taken from ../python3-adblock/template
maturin build -o . --release --target "${RUST_TARGET}" --manylinux off
mkdir -p dist
mv mitmproxy_wireguard-${version}-*.whl dist/mitmproxy_wireguard-${version}-py3-none-any.whl
}
post_install() {
vlicense LICENSE
}