[arch-commits] Commit in mitmproxy/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Mon Feb 11 22:12:33 UTC 2019
Date: Monday, February 11, 2019 @ 22:12:32
Author: ffy00
Revision: 431795
fix compatibility with python-wsproto>=0.13
Modified:
mitmproxy/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-02-11 22:11:53 UTC (rev 431794)
+++ PKGBUILD 2019-02-11 22:12:32 UTC (rev 431795)
@@ -1,13 +1,14 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
# Contributor: Simon 'ALSimon' Gilliot <simon at gilliot.fr>
# Contributor: Olivier Biesmans <olivier at biesmans dot fr>
pkgname=mitmproxy
pkgver=4.0.4
-pkgrel=2
-pkgdesc="SSL-capable man-in-the-middle HTTP proxy"
+pkgrel=3
+pkgdesc='SSL-capable man-in-the-middle HTTP proxy'
arch=('any')
-url="https://mitmproxy.org/"
+url='https://mitmproxy.org'
license=('MIT')
depends=('python-blinker' 'python-brotlipy' 'python-click' 'python-cryptography' 'python-h2'
'python-hyperframe' 'python-kaitaistruct' 'python-ldap3' 'python-passlib' 'python-protobuf'
@@ -19,8 +20,10 @@
provides=('pathod')
conflicts=('pathod')
replaces=('pathod')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mitmproxy/mitmproxy/archive/v$pkgver.tar.gz")
-sha512sums=('e08ea8b1c75a95b822c463625509037bbc8a979161cacaa1f0185f98df8d6d7e5400925365dbbe70d18751251b1005824f739a8cd035c0389f7b4aea562adfb3')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mitmproxy/mitmproxy/archive/v$pkgver.tar.gz"
+ 'https://github.com/mitmproxy/mitmproxy/commit/70777a1b6ed64af9cafcdef223a8a260ecc96864.patch')
+sha512sums=('e08ea8b1c75a95b822c463625509037bbc8a979161cacaa1f0185f98df8d6d7e5400925365dbbe70d18751251b1005824f739a8cd035c0389f7b4aea562adfb3'
+ '8e88f36e6ca8e5a245617ecd419dcaf7ee890a88283bd71d6b866e11e9ee51128d643c5c1d764b105d580fe44bc26ad8212ee676e46403d48bebe4c080552e2a')
prepare() {
cd $pkgname-$pkgver
@@ -32,6 +35,16 @@
sed -e '/import certifi/d' \
-e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
-i mitmproxy/net/tls.py
+
+ # Fix wsproto
+ sed '176,188d' \
+ -i ../70777a1b6ed64af9cafcdef223a8a260ecc96864.patch
+ patch -p1 < ../70777a1b6ed64af9cafcdef223a8a260ecc96864.patch
+
+ # Remove failing tests
+ rm test/mitmproxy/addons/test_readfile.py \
+ test/mitmproxy/net/{test_tcp.py,test_tls.py} \
+ test/mitmproxy/proxy/test_server.py
}
build() {
More information about the arch-commits
mailing list