@@ -4,8 +4,7 @@ PortSystem 1.0
4
4
PortGroup python 1.0
5
5
PortGroup github 1.0
6
6
7
-
8
- github.setup mitmproxy mitmproxy 7.0.4 v
7
+ github.setup mitmproxy mitmproxy 11.0.2 v
9
8
revision 0
10
9
11
10
name py-${github.project}
@@ -26,33 +25,31 @@ long_description \
26
25
27
26
homepage https://mitmproxy.org/
28
27
29
- checksums rmd160 7668d0fe20ad33e026de91345ceb966d408f4774 \
30
- sha256 d7d7636e2c2c2d957e413fdd54fd5be35f9128287601df5e8a971865d186fffe \
31
- size 27312057
32
-
33
- patchfiles patch-test_version.py.diff
28
+ checksums rmd160 74c695393f3aaab519fa268d0720936092424473 \
29
+ sha256 2e67521b00970997f101c15a598d17ad0440411d1cd2c978879791c73e4251ce \
30
+ size 31029542
34
31
35
- python.versions 39 310 311
32
+ # mitmproxy supports 312 & 313 but currently some deps do not :-(
33
+ python.versions 310 311
36
34
37
35
if {${name} ne ${subport} } {
38
- depends_lib-append port:py${python.version} -asn1 \
36
+ depends_lib-append port:py${python.version} -aioquic \
39
37
port:py${python.version} -asgiref \
40
- port:py${python.version} -blinker \
41
38
port:py${python.version} -brotli \
42
- port:py${python.version} -click \
43
39
port:py${python.version} -certifi \
44
40
port:py${python.version} -cryptography \
45
41
port:py${python.version} -flask \
42
+ port:py${python.version} -h11 \
46
43
port:py${python.version} -h2 \
47
44
port:py${python.version} -hyperframe \
48
45
port:py${python.version} -kaitaistruct \
49
46
port:py${python.version} -ldap3 \
47
+ port:py${python.version} -mitmproxy_rs \
50
48
port:py${python.version} -msgpack \
51
49
port:py${python.version} -openssl \
52
50
port:py${python.version} -parsing \
53
51
port:py${python.version} -passlib \
54
52
port:py${python.version} -publicsuffix2 \
55
- port:py${python.version} -protobuf3 \
56
53
port:py${python.version} -pyperclip \
57
54
port:py${python.version} -ruamel-yaml \
58
55
port:py${python.version} -ruamel-yaml-clib \
@@ -64,17 +61,17 @@ if {${name} ne ${subport}} {
64
61
65
62
# Testing dependencies
66
63
depends_test-append port:py${python.version} -pytest \
67
- port:py${python.version} -asynctest \
68
- port:py${python.version} -beautifulsoup4 \
69
64
port:py${python.version} -hypothesis \
70
65
port:py${python.version} -pytest-asyncio \
71
- port:py${python.version} -tz \
72
- port:py${python.version} -parver \
73
66
port:py${python.version} -requests
74
67
68
+ if {${python.version} < 311} {
69
+ depends_lib-append port:py${python.version} -typing_extensions
70
+ }
71
+
75
72
post-patch {
76
73
# Remove all upper bounds - potential breakings are detected by test
77
- reinplace " s/, *<\[ 0-9=.\] *//" ${worksrcpath} /setup.py
74
+ reinplace " s/, *<\[ 0-9=.\] *//" ${worksrcpath} /pyproject.toml
78
75
}
79
76
80
77
test.run yes
0 commit comments