2017-01-04 08:18:04 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
baseName = "mitmproxy";
|
|
|
|
name = "${baseName}-${version}";
|
2017-06-20 00:57:04 +01:00
|
|
|
version = "2.0.2";
|
2017-01-04 08:18:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = baseName;
|
|
|
|
repo = baseName;
|
|
|
|
rev = "v${version}";
|
2017-06-20 00:57:04 +01:00
|
|
|
sha256 = "1x1a28al5clpfd69rjcpw26gjjnpsm1vfl4scrwpdd1jhkw044h9";
|
2017-01-04 08:18:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2017-03-04 00:07:40 +00:00
|
|
|
blinker click certifi construct cryptography
|
|
|
|
cssutils editorconfig h2 html2text hyperframe
|
|
|
|
jsbeautifier kaitaistruct passlib pyasn1 pyopenssl
|
2017-05-07 11:55:45 +01:00
|
|
|
pyparsing pyperclip requests ruamel_yaml tornado
|
2017-03-04 00:07:40 +00:00
|
|
|
urwid watchdog brotlipy sortedcontainers
|
2017-01-04 08:18:04 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|