nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 893 B view raw
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 # Note: if this isn't downloading, its because mitmproxy-rs updated without also updating this. 14 src = fetchPypi { 15 pname = "mitmproxy_macos"; 16 inherit version; 17 format = "wheel"; 18 dist = "py3"; 19 python = "py3"; 20 hash = "sha256-baAfEY4hEN3wOEicgE53gY71IX003JYFyyZaNJ7U8UA="; 21 }; 22 23 # repo has no python tests 24 doCheck = false; 25 26 pythonImportsCheck = [ "mitmproxy_macos" ]; 27 28 meta = { 29 inherit (mitmproxy-rs.meta) changelog license maintainers; 30 description = "MacOS Rust bits in mitmproxy"; 31 homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos"; 32 platforms = lib.platforms.darwin; 33 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 34 }; 35}