1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatchling 5}: 6 7buildPythonPackage rec { 8 pname = "mitmproxy-macos"; 9 version = "0.4.1"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "mitmproxy"; 14 repo = "mitmproxy_rs"; 15 rev = version; 16 hash = "sha256-Vc7ez/W40CefO2ZLAHot14p478pDPtQor865675vCtI="; 17 }; 18 19 sourceRoot = "${src.name}/mitmproxy-macos"; 20 pythonImportsCheck = [ "mitmproxy_macos" ]; 21 nativeBuildInputs = [ 22 hatchling 23 ]; 24 25 meta = with lib; { 26 description = "The MacOS Rust bits in mitmproxy"; 27 homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos"; 28 changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${src.rev}/CHANGELOG.md"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ boltzmannrain ]; 31 platforms = platforms.darwin; 32 }; 33}