2017-07-18 23:33:10 +02:00
|
|
|
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }:
|
2017-01-04 09:18:04 +01:00
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
baseName = "mitmproxy";
|
|
|
|
name = "${baseName}-${version}";
|
2017-06-20 01:57:04 +02:00
|
|
|
version = "2.0.2";
|
2017-01-04 09:18:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = baseName;
|
|
|
|
repo = baseName;
|
|
|
|
rev = "v${version}";
|
2017-06-20 01:57:04 +02:00
|
|
|
sha256 = "1x1a28al5clpfd69rjcpw26gjjnpsm1vfl4scrwpdd1jhkw044h9";
|
2017-01-04 09:18:04 +01:00
|
|
|
};
|
|
|
|
|
2017-07-10 19:43:55 +02:00
|
|
|
patches = [
|
|
|
|
# Bump pyopenssl dependency
|
|
|
|
# https://github.com/mitmproxy/mitmproxy/pull/2252
|
2017-07-18 23:33:10 +02:00
|
|
|
(fetchpatch {
|
2017-07-10 19:43:55 +02:00
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/mitmproxy/mitmproxy/pull/2252.patch";
|
2017-07-18 23:33:10 +02:00
|
|
|
sha256 = "1smld21df79249qbh412w8gi2agcf4zjhxnlawy19yjl1fk2h67c";
|
2017-07-10 19:43:55 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
2017-05-07 12:55:45 +02:00
|
|
|
pyparsing pyperclip requests ruamel_yaml tornado
|
2017-03-04 01:07:40 +01:00
|
|
|
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";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://mitmproxy.org/;
|
2017-01-04 09:18:04 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|