Skip to content

Commit

Permalink
mitmproxy: unicode locales, skip network test
Browse files Browse the repository at this point in the history
(cherry picked from commit 73c6284)
  • Loading branch information
Mic92 committed Sep 4, 2017
1 parent 288d1d1 commit eee2d17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/tools/networking/mitmproxy/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }:
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages, glibcLocales }:

python3Packages.buildPythonPackage rec {
baseName = "mitmproxy";
Expand Down Expand Up @@ -29,7 +29,8 @@ python3Packages.buildPythonPackage rec {

checkPhase = ''
export HOME=$(mktemp -d)
LC_CTYPE=en_US.UTF-8 python setup.py pytest
# test_echo resolves hostnames
LC_CTYPE=en_US.UTF-8 pytest -k 'not test_echo'
'';

propagatedBuildInputs = with python3Packages; [
Expand All @@ -41,7 +42,7 @@ python3Packages.buildPythonPackage rec {
];

buildInputs = with python3Packages; [
beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2
beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2 glibcLocales
];

meta = with stdenv.lib; {
Expand Down

0 comments on commit eee2d17

Please sign in to comment.