File tree Expand file tree Collapse file tree 6 files changed +82
-3598
lines changed
development/python-modules Expand file tree Collapse file tree 6 files changed +82
-3598
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ bpf-linker ,
5+ fetchFromGitHub ,
6+ rustPlatform ,
7+ mitmproxy ,
8+ } :
9+
10+ buildPythonPackage rec {
11+ pname = "mitmproxy-linux" ;
12+ version = "0.11.4" ;
13+ pyproject = true ;
14+
15+ src = fetchFromGitHub {
16+ owner = "mitmproxy" ;
17+ repo = "mitmproxy_rs" ;
18+ tag = "v${ version } " ;
19+ hash = "sha256-lWUHdS+AkMnIg+1SR+9fC+YjcyLK80UknwGablniLSg=" ;
20+ } ;
21+ cargoDeps = rustPlatform . fetchCargoVendor {
22+ inherit pname version src ;
23+ hash = "sha256-ihbVh73eulqFyKC49KfsCFJqahr3nWVFFc97iFFf3Nk=" ;
24+ } ;
25+
26+ buildAndTestSubdir = "mitmproxy-linux" ;
27+
28+ nativeBuildInputs = [
29+ bpf-linker
30+ rustPlatform . cargoSetupHook
31+ rustPlatform . maturinBuildHook
32+ ] ;
33+
34+ pythonImportsCheck = [ "mitmproxy_linux" ] ;
35+
36+ meta = with lib ; {
37+ description = "Rust bits in mitmproxy" ;
38+ homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-linux" ;
39+ changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${ src . rev } /CHANGELOG.md#${
40+ lib . replaceStrings [ "." ] [ "" ] version
41+ } " ;
42+ license = licenses . mit ;
43+ inherit ( mitmproxy . meta ) maintainers ;
44+ } ;
45+ }
You can’t perform that action at this time.
0 commit comments