Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "mitmproxy-macos"; 11 version = "0.5.1"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.10"; 15 16 src = fetchFromGitHub { 17 owner = "mitmproxy"; 18 repo = "mitmproxy_rs"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-nrm1T2yaGVmYsubwNJHPnPDC/A/jYiKVzwBKmuc9MD4="; 21 }; 22 23 sourceRoot = "${src.name}/mitmproxy-macos"; 24 25 nativeBuildInputs = [ hatchling ]; 26 27 pythonImportsCheck = [ "mitmproxy_macos" ]; 28 29 meta = with lib; { 30 description = "MacOS Rust bits in mitmproxy"; 31 homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos"; 32 changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${version}/CHANGELOG.md"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ boltzmannrain ]; 35 platforms = platforms.darwin; 36 broken = true; # last successful build 2023-12-04 37 }; 38}