mitmproxy: unicode locales, skip network test

This commit is contained in:
Jörg Thalheim 2017-09-04 22:46:19 +01:00
parent 8414d8386b
commit 73c6284c2e

View File

@ -1,4 +1,4 @@
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }: { stdenv, fetchpatch, fetchFromGitHub, python3Packages, glibcLocales }:
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
baseName = "mitmproxy"; baseName = "mitmproxy";
@ -29,7 +29,8 @@ python3Packages.buildPythonPackage rec {
checkPhase = '' checkPhase = ''
export HOME=$(mktemp -d) 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; [ propagatedBuildInputs = with python3Packages; [
@ -41,7 +42,7 @@ python3Packages.buildPythonPackage rec {
]; ];
buildInputs = with python3Packages; [ buildInputs = with python3Packages; [
beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2 beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2 glibcLocales
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {