11 buildPythonPackage rec {
12 pname = "mitmproxy-rs";
16 src = fetchFromGitHub {
18 repo = "mitmproxy_rs";
20 hash = "sha256-V6LUr1jJiTo0+53jipkTyzG5JSw6uHaS6ziyBaFbETw=";
23 cargoDeps = rustPlatform.importCargoLock {
24 lockFile = ./Cargo.lock;
26 "internet-packet-0.1.0" = "sha256-VtEuCE1sulBIFVymh7YW7VHCuIBjtb6tHoPz2tjxX+Q=";
30 buildAndTestSubdir = "mitmproxy-rs";
33 rustPlatform.cargoSetupHook
34 rustPlatform.maturinBuildHook
37 buildInputs = lib.optionals stdenv.isDarwin [
38 darwin.apple_sdk.frameworks.Security
43 pythonImportsCheck = [ "mitmproxy_rs" ];
46 description = "The Rust bits in mitmproxy";
47 homepage = "https://github.com/mitmproxy/mitmproxy_rs";
48 changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${src.rev}/CHANGELOG.md";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 platforms = platforms.all;