nixpkgs/pkgs/tools/networking/mitmproxy/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchpatch, fetchFromGitHub, fetchurl, python3, glibcLocales }:
2017-11-02 23:38:23 +00:00
python3.pkgs.buildPythonPackage rec {
baseName = "mitmproxy";
2017-11-02 23:38:23 +00:00
name = "${baseName}-unstable-2017-10-31";
src = fetchFromGitHub {
owner = baseName;
repo = baseName;
2017-11-02 23:38:23 +00:00
rev = "80a8eaa708ea31dd9c5e7e1ab6b02c69079039c0";
sha256 = "0rvwm11yryzlp3c1i42rk2iv1m38yn6r83k41jb51hwg6wzbwzvw";
};
2017-08-28 06:27:59 +00:00
checkPhase = ''
export HOME=$(mktemp -d)
# test_echo resolves hostnames
2017-11-02 23:38:23 +00:00
LC_CTYPE=en_US.UTF-8 pytest -k 'not test_echo and not test_find_unclaimed_URLs '
2017-08-28 06:27:59 +00:00
'';
2017-11-02 23:38:23 +00:00
propagatedBuildInputs = with python3.pkgs; [
blinker click certifi cryptography
h2 hyperframe
kaitaistruct passlib pyasn1 pyopenssl
pyparsing pyperclip requests ruamel_yaml tornado
2017-11-02 23:38:23 +00:00
urwid brotlipy sortedcontainers ldap3
];
2017-11-02 23:38:23 +00:00
buildInputs = with python3.pkgs; [
beautifulsoup4 flask pytest pytestrunner glibcLocales
2017-08-28 06:27:59 +00:00
];
meta = with stdenv.lib; {
description = "Man-in-the-middle proxy";
homepage = http://mitmproxy.org/;
license = licenses.mit;
maintainers = with maintainers; [ fpletz kamilchm ];
};
}