mitmproxy: 0.17.1 -> 1.0.2, move to all-packages.nix

This commit is contained in:
Franz Pletz 2017-01-04 09:18:04 +01:00
parent 71725619a8
commit e94bfe55c4
No known key found for this signature in database
GPG key ID: 846FDED7792617B4
3 changed files with 33 additions and 27 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -2818,6 +2818,8 @@ in
miredo = callPackage ../tools/networking/miredo { };
mitmproxy = callPackage ../tools/networking/mitmproxy { };
mjpegtoolsFull = callPackage ../tools/video/mjpegtools { };
mjpegtools = self.mjpegtoolsFull.override {

View file

@ -14728,33 +14728,6 @@ in {
};
};
mitmproxy = buildPythonPackage rec {
baseName = "mitmproxy";
name = "${baseName}-${version}";
version = "0.17.1";
src = pkgs.fetchFromGitHub {
owner = "mitmproxy";
repo = "mitmproxy";
rev = "v${version}";
sha256 = "0a50mkvm3zf9cbs0pf6bwy00bhmy4d1l9as8c9m0bgrk6hq7h53p";
};
propagatedBuildInputs = with self; [
pyopenssl pyasn1 urwid pillow lxml flask protobuf click
ConfigArgParse pyperclip blinker construct pyparsing html2text tornado
];
doCheck = false;
meta = {
description = ''Man-in-the-middle proxy'';
homepage = "http://mitmproxy.org/";
license = licenses.mit;
broken = true;
};
};
mock = buildPythonPackage (rec {
name = "mock-2.0.0";