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-NArp10yhERk7Hhw5fIU+ekbupyldyzpLQdKgebiUpOM=";
20 };
21
22 # repo has no python tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "mitmproxy_macos" ];
26
27 meta = {
28 inherit (mitmproxy-rs.meta) changelog license maintainers;
29 description = "MacOS Rust bits in mitmproxy";
30 homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos";
31 platforms = lib.platforms.darwin;
32 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
33 };
34}