Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
908 B · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildPythonPackage, fetchFromGitHub, hatchling, pythonOlder}:
buildPythonPackage rec { pname = "mitmproxy-macos"; version = "0.5.1"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "mitmproxy"; repo = "mitmproxy_rs"; rev = "refs/tags/${version}"; hash = "sha256-nrm1T2yaGVmYsubwNJHPnPDC/A/jYiKVzwBKmuc9MD4="; };
sourceRoot = "${src.name}/mitmproxy-macos";
nativeBuildInputs = [ hatchling ];
pythonImportsCheck = [ "mitmproxy_macos" ];
meta = with lib; { description = "The MacOS Rust bits in mitmproxy"; homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos"; changelog = "https://github.com/mitmproxy/mitmproxy_rs/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ boltzmannrain ]; platforms = platforms.darwin; };}