python.pkgs.blessed: fix tests

This commit is contained in:
Jörg Thalheim 2017-12-14 16:32:26 -06:00
parent a3b84e03a0
commit 6c12e66388

View File

@ -1,4 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth }: { stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
, glibcLocales }:
buildPythonPackage rec { buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
@ -10,6 +11,12 @@ buildPythonPackage rec {
sha256 = "0fv9f0074kxy1849h0kwwxw12sifpq3bv63pcz900zzjsigi4hi3"; sha256 = "0fv9f0074kxy1849h0kwwxw12sifpq3bv63pcz900zzjsigi4hi3";
}; };
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''
LANG=en_US.utf-8 py.test blessed/tests
'';
propagatedBuildInputs = [ wcwidth six ]; propagatedBuildInputs = [ wcwidth six ];
meta = with stdenv.lib; { meta = with stdenv.lib; {