mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-02 06:22:37 +01:00
79 lines
2.0 KiB
Plaintext
79 lines
2.0 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=mitmproxy
|
|
pkgver=6.0.2
|
|
pkgrel=0
|
|
pkgdesc="Interactive TLS-capable intercepting HTTP proxy"
|
|
url="https://mitmproxy.org/"
|
|
license="MIT"
|
|
arch="noarch !s390x !armhf !mips64" # limited by py3-zstandard
|
|
depends="
|
|
python3
|
|
py3-asgiref
|
|
py3-blinker
|
|
py3-brotli
|
|
py3-certifi
|
|
py3-click
|
|
py3-cryptography
|
|
py3-flask
|
|
py3-h2
|
|
py3-hyperframe
|
|
py3-kaitaistruct
|
|
py3-ldap3
|
|
py3-msgpack
|
|
py3-passlib
|
|
py3-protobuf
|
|
py3-asn1
|
|
py3-openssl
|
|
py3-parsing
|
|
py3-pyperclip
|
|
py3-ruamel.yaml
|
|
py3-sortedcontainers
|
|
py3-tornado
|
|
py3-urwid
|
|
py3-wsproto
|
|
py3-publicsuffix2
|
|
py3-zstandard
|
|
"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="
|
|
py3-hypothesis
|
|
py3-parver
|
|
py3-pytest
|
|
py3-pytest-asyncio
|
|
py3-requests
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mitmproxy/mitmproxy/archive/v$pkgver.tar.gz
|
|
test-proxy.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# remove test file importing asynctest module, which doesn't support python3.8
|
|
# see: https://github.com/Martiusweb/asynctest/issues/132
|
|
rm test/mitmproxy/addons/test_readfile.py
|
|
|
|
# relax constraints on required dependencies
|
|
sed -E "s/, *<[0-9=.]*//" -i setup.py
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest --deselect "test/mitmproxy/test_version.py::test_get_version"
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
|
|
|
|
# remove deprecated tooling: https://github.com/mitmproxy/mitmproxy/pull/4296
|
|
rm "$pkgdir"/usr/bin/pathoc "$pkgdir"/usr/bin/pathod
|
|
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/pathod
|
|
}
|
|
|
|
sha512sums="27eb5e9736891148b5ebec963a2d18de6a69b44428538d2ed1cf9a1dcdd7cbcdeeed662edb2d25521098374e2f9a29b5bb8fba8da4f77ac0d32bf7881ac70d61 mitmproxy-6.0.2.tar.gz
|
|
b4809e4699e605666fc01aaad694ee8ea3a1e5cdf901b00723e49e9bb98a1ba88319b5e24a2f1c8e7435c5552b26de390655d0852ef7bfcace2e32ae4db348eb test-proxy.patch"
|