Skip to content

Commit 73c6284

Browse files
committedSep 4, 2017
mitmproxy: unicode locales, skip network test
1 parent 8414d83 commit 73c6284

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }:
1+
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages, glibcLocales }:
22

33
python3Packages.buildPythonPackage rec {
44
baseName = "mitmproxy";
@@ -29,7 +29,8 @@ python3Packages.buildPythonPackage rec {
2929

3030
checkPhase = ''
3131
export HOME=$(mktemp -d)
32-
LC_CTYPE=en_US.UTF-8 python setup.py pytest
32+
# test_echo resolves hostnames
33+
LC_CTYPE=en_US.UTF-8 pytest -k 'not test_echo'
3334
'';
3435

3536
propagatedBuildInputs = with python3Packages; [
@@ -41,7 +42,7 @@ python3Packages.buildPythonPackage rec {
4142
];
4243

4344
buildInputs = with python3Packages; [
44-
beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2
45+
beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2 glibcLocales
4546
];
4647

4748
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)