blob: c1597ec6c2a7521dff416a2539f7cf20863301dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
buildPythonPackage,
fetchPypi,
mitmproxy-rs,
}:
buildPythonPackage rec {
pname = "mitmproxy-macos";
inherit (mitmproxy-rs) version;
format = "wheel";
# Note: if this isn't downloading, its because mitmproxy-rs updated without also updating this.
src = fetchPypi {
pname = "mitmproxy_macos";
inherit version;
format = "wheel";
dist = "py3";
python = "py3";
hash = "sha256-baAfEY4hEN3wOEicgE53gY71IX003JYFyyZaNJ7U8UA=";
};
# repo has no python tests
doCheck = false;
pythonImportsCheck = [ "mitmproxy_macos" ];
meta = {
inherit (mitmproxy-rs.meta) changelog license maintainers;
description = "MacOS Rust bits in mitmproxy";
homepage = "https://github.com/mitmproxy/mitmproxy_rs/tree/main/mitmproxy-macos";
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}
|