11 buildPythonPackage rec {
12 pname = "mitmproxy-rs";
16 src = fetchFromGitHub {
18 repo = "mitmproxy_rs";
20 hash = "sha256-nrm1T2yaGVmYsubwNJHPnPDC/A/jYiKVzwBKmuc9MD4=";
23 cargoDeps = rustPlatform.importCargoLock {
24 lockFile = ./Cargo.lock;
27 buildAndTestSubdir = "mitmproxy-rs";
30 rustPlatform.cargoSetupHook
31 rustPlatform.maturinBuildHook
34 buildInputs = lib.optionals stdenv.isDarwin [
35 darwin.apple_sdk.frameworks.Security
40 pythonImportsCheck = [ "mitmproxy_rs" ];
43 description = "The Rust bits in mitmproxy";
44 homepage = "https://github.com/mitmproxy/mitmproxy_rs";
45 changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${src.rev}/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];