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