Skip to content

Commit

Permalink
mitmproxy: 11.0.2 -> 11.1.0; mitmproxy-linux: init at 0.11.4
Browse files Browse the repository at this point in the history
Signed-off-by: misilelab <[email protected]>
  • Loading branch information
MisileLab committed Jan 13, 2025
1 parent c27de41 commit ac9cdaf
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 3,598 deletions.
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/mitmproxy-linux/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
bpf-linker,
fetchFromGitHub,
rustPlatform,
mitmproxy,
}:

buildPythonPackage rec {
pname = "mitmproxy-linux";
version = "0.11.4";
pyproject = true;

src = fetchFromGitHub {
owner = "mitmproxy";
repo = "mitmproxy_rs";
rev = "v${version}";
hash = "sha256-lWUHdS+AkMnIg+1SR+9fC+YjcyLK80UknwGablniLSg=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-ihbVh73eulqFyKC49KfsCFJqahr3nWVFFc97iFFf3Nk=";
};

buildAndTestSubdir = "mitmproxy-linux";

nativeBuildInputs = [
bpf-linker
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];

pythonImportsCheck = [ "mitmproxy_linux" ];

meta = with lib; {
description = "Rust bits in mitmproxy";
homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-linux";
changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${src.rev}/CHANGELOG.md#${
lib.replaceStrings [ "." ] [ "" ] version
}";
license = licenses.mit;
inherit (mitmproxy.meta) maintainers;
};
}
Loading

0 comments on commit ac9cdaf

Please sign in to comment.