2017-01-04 09:18:04 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
baseName = "mitmproxy";
|
|
|
|
name = "${baseName}-${version}";
|
2017-03-04 01:07:40 +01:00
|
|
|
version = "2.0.0";
|
2017-01-04 09:18:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = baseName;
|
|
|
|
repo = baseName;
|
|
|
|
rev = "v${version}";
|
2017-03-04 01:07:40 +01:00
|
|
|
sha256 = "17gvr642skz4a23966lckdbrkh6mx31shi8hmakkvi91sa869i30";
|
2017-01-04 09:18:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2017-03-04 01:07:40 +01:00
|
|
|
blinker click certifi construct cryptography
|
|
|
|
cssutils editorconfig h2 html2text hyperframe
|
|
|
|
jsbeautifier kaitaistruct passlib pyasn1 pyopenssl
|
|
|
|
pyparsing pyperclip requests2 ruamel_yaml tornado
|
|
|
|
urwid watchdog brotlipy sortedcontainers
|
2017-01-04 09:18:04 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|