about summary refs log tree commit diff
path: root/pkgs/tools/networking/mitmproxy/default.nix
blob: 8e82023d50a2a7d02e3f57c2add7d03bfac092a6 (plain) (blame)
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
{ stdenv, fetchFromGitHub, python3Packages }:

python3Packages.buildPythonPackage rec {
  baseName = "mitmproxy";
  name = "${baseName}-${version}";
  version = "1.0.2";

  src = fetchFromGitHub {
    owner = baseName;
    repo = baseName;
    rev = "v${version}";
    sha256 = "19nqg7s1034fal8sb2rjssgcpvxh50yidyjhnbfmmi8v3fbvpbwl";
  };

  propagatedBuildInputs = with python3Packages; [
    pyopenssl pyasn1 urwid pillow flask click pyperclip blinker
    construct pyparsing html2text tornado brotlipy requests2
    sortedcontainers passlib cssutils h2 ruamel_yaml jsbeautifier
    watchdog editorconfig
  ];

  # Tests fail due to an error with a decorator
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Man-in-the-middle proxy";
    homepage = "http://mitmproxy.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ fpletz ];
  };
}