1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 mitmproxy-rs,
6}:
7
8buildPythonPackage rec {
9 pname = "mitmproxy-macos";
10 inherit (mitmproxy-rs) version;
11 format = "wheel";
12
13 src = fetchPypi {
14 pname = "mitmproxy_macos";
15 inherit version;
16 format = "wheel";
17 dist = "py3";
18 python = "py3";
19 hash = "sha256-sNguT3p72v9+FU5XFLYV6p0fO6WvGYerPy68GINwbyA=";
20 };
21
22 # repo has no python tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "mitmproxy_macos" ];
26
27 meta = with lib; {
28 description = "MacOS Rust bits in mitmproxy";
29 homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos";
30 changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${version}/CHANGELOG.md";
31 license = licenses.mit;
32 maintainers = with maintainers; [ boltzmannrain ];
33 platforms = platforms.darwin;
34 sourceProvenance = with sourceTypes; [ binaryBytecode ];
35 };
36}