Skip to content

Commit ab49f0c

Browse files
committed
mitmproxy: 11.0.2 -> 11.1.0; mitmproxy-linux: init at 0.11.4
Signed-off-by: misilelab <[email protected]>
1 parent c27de41 commit ab49f0c

File tree

6 files changed

+82
-3598
lines changed

6 files changed

+82
-3598
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
}

0 commit comments

Comments
 (0)