From a1c9042c9db244d47e55c30225fa778613a41c0f Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 25 Dec 2024 18:01:43 -0500 Subject: [PATCH 1/4] New package: python3-pylsqpack-0.3.18 --- srcpkgs/python3-pylsqpack/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/python3-pylsqpack/template diff --git a/srcpkgs/python3-pylsqpack/template b/srcpkgs/python3-pylsqpack/template new file mode 100644 index 00000000000000..739fd8f3377993 --- /dev/null +++ b/srcpkgs/python3-pylsqpack/template @@ -0,0 +1,22 @@ +# Template file for 'python3-pylsqpack' +pkgname=python3-pylsqpack +version=0.3.18 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +makedepends="python3-devel" +checkdepends="python3-pytest" +short_desc="Python bindings for ls-qpack" +maintainer="Orphaned " +license="BSD-3-Clause" +homepage="https://github.com/aiortc/pylsqpack" +distfiles="${PYPI_SITE}/p/pylsqpack/pylsqpack-${version}.tar.gz" +checksum=45ae55e721877505f4d5ccd49591d69353f2a548a8673dfafb251d385b3c097f + +if [ "$XBPS_TARGET_LIBC" = musl ]; then + makedepends+=" musl-legacy-compat" +fi + +post_install() { + vlicense LICENSE +} From 2e7ac50debbd0bec4ff8b43a1b7d5bc3eb2451b1 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 25 Dec 2024 18:01:55 -0500 Subject: [PATCH 2/4] New package: python3-aioquic-1.2.0 --- srcpkgs/python3-aioquic/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/python3-aioquic/template diff --git a/srcpkgs/python3-aioquic/template b/srcpkgs/python3-aioquic/template new file mode 100644 index 00000000000000..4ddf05e4bf9e23 --- /dev/null +++ b/srcpkgs/python3-aioquic/template @@ -0,0 +1,22 @@ +# Template file for 'python3-aioquic' +pkgname=python3-aioquic +version=1.2.0 +revision=1 +build_style=python3-pep517 +make_check_args="-k not(test_verify_subject_no_subjaltname)" +hostmakedepends="python3-setuptools python3-wheel" +makedepends="python3-devel openssl-devel" +depends="python3-certifi python3-cryptography python3-openssl python3-pylsqpack + python3-service_identity" +checkdepends="${depends} python3-pytest-xdist" +short_desc="QUIC and HTTP/3 implementation" +maintainer="Orphaned " +license="BSD-3-Clause" +homepage="https://github.com/aiortc/aioquic" +changelog="https://aioquic.readthedocs.io/en/stable/changelog.html" +distfiles="${PYPI_SITE}/a/aioquic/aioquic-${version}.tar.gz" +checksum=f91263bb3f71948c5c8915b4d50ee370004f20a416f67fab3dcc90556c7e7199 + +post_install() { + vlicense LICENSE +} From 3baf8ccb87bfc45aa6061c7f6e29c1776aaa4118 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 25 Dec 2024 18:02:01 -0500 Subject: [PATCH 3/4] New package: python3-mitmproxy-rs-0.11.1 this package subsumes python3-mitmproxy_wireguard, so it can be removed and replaces --- srcpkgs/python3-mitmproxy-rs/template | 20 +++++++++++++++ srcpkgs/python3-mitmproxy_wireguard/template | 27 -------------------- 2 files changed, 20 insertions(+), 27 deletions(-) create mode 100644 srcpkgs/python3-mitmproxy-rs/template delete mode 100644 srcpkgs/python3-mitmproxy_wireguard/template diff --git a/srcpkgs/python3-mitmproxy-rs/template b/srcpkgs/python3-mitmproxy-rs/template new file mode 100644 index 00000000000000..0bfc95071429eb --- /dev/null +++ b/srcpkgs/python3-mitmproxy-rs/template @@ -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 " +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 +} diff --git a/srcpkgs/python3-mitmproxy_wireguard/template b/srcpkgs/python3-mitmproxy_wireguard/template deleted file mode 100644 index 0e9ce93191b0e8..00000000000000 --- a/srcpkgs/python3-mitmproxy_wireguard/template +++ /dev/null @@ -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 " -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 -} From 6ebb976178a32f1271474d7b9ee6002183030cca Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 25 Dec 2024 18:07:08 -0500 Subject: [PATCH 4/4] mitmproxy: update to 11.0.2. fixes #53682 --- srcpkgs/mitmproxy/template | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/srcpkgs/mitmproxy/template b/srcpkgs/mitmproxy/template index 8259cb3470e563..6778ab69e50474 100644 --- a/srcpkgs/mitmproxy/template +++ b/srcpkgs/mitmproxy/template @@ -1,13 +1,13 @@ # Template file for 'mitmproxy' pkgname=mitmproxy -version=9.0.1 -revision=3 -build_style=python3-module +version=11.0.2 +revision=1 +build_style=python3-pep517 hostmakedepends="python3-setuptools" -depends="python3-Brotli python3-Flask python3-asgiref python3-certifi python3-click +depends="python3-aioquic python3-Brotli python3-Flask python3-asgiref python3-certifi python3-cryptography python3-h11 python3-h2 python3-hyperframe python3-kaitaistruct - python3-ldap3 python3-mitmproxy_wireguard python3-msgpack python3-openssl python3-parsing - python3-passlib python3-protobuf python3-publicsuffix2 python3-pyperclip python3-ruamel.yaml + python3-ldap3 python3-mitmproxy-rs python3-msgpack python3-openssl python3-parsing + python3-passlib python3-publicsuffix2 python3-pyperclip python3-ruamel.yaml python3-sortedcontainers python3-tornado python3-urwid python3-wsproto python3-zstandard" checkdepends="${depends} python3-hypothesis python3-parver python3-pytest-asyncio python3-pytest-cov python3-pytest-timeout python3-requests" @@ -16,16 +16,20 @@ maintainer="Evgeny Ermakov " license="MIT" homepage="https://mitmproxy.org" changelog="https://raw.githubusercontent.com/mitmproxy/mitmproxy/main/CHANGELOG.md" -distfiles="https://github.com/mitmproxy/mitmproxy/archive/${version}.tar.gz" -checksum=2acd2c16e5bc02cd1dab8c58003254a71a2ee0ec0366001f624f85c980a2b43a +distfiles="https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v${version}.tar.gz" +checksum=bd308c4d403e6c2d202720c4f57aefd6b055a36f910751d1ef836f24f4f7ace9 _skip="(test_get_version)" # This test fails without a git repository _skip+="or(test_wireguard)" # Tries to execute a helper binary compiled for glibc -if [ ${XBPS_TARGET_MACHINE%-musl} = "i686" ]; then +if [ "${XBPS_TARGET_MACHINE%-musl}" = 'i686' ]; then _skip+="or(test_refresh)" fi +if [ "${XBPS_BUILD_ENVIRONMENT}" = 'void-packages-ci' ]; then + _skip+="or(test_tun_mode)" +fi + make_check_args="-k not($_skip)" post_install() {