git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.blessed: fix tests
commit6c12e66388693427d271bae49f889e0ecb12124c authorJörg Thalheim <joerg@thalheim.io> dateThu 14 Dec 2017, 16:32 (9 years ago) parenta3b84e0
1 file changed+8−1
pkgs/development/python-modules/blessed/default.nix+8−1
pkgs/development/python-modules/blessed/default.nix+8−1
@@ -1,4 +1,5 @@
1−{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth }:
1+{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
2+, glibcLocales }:
23
34buildPythonPackage rec {
45 name = "${pname}-${version}";
@@ -10,6 +11,12 @@ buildPythonPackage rec {
1011 sha256 = "0fv9f0074kxy1849h0kwwxw12sifpq3bv63pcz900zzjsigi4hi3";
1112 };
1213
14+ checkInputs = [ pytest mock glibcLocales ];
15+
16+ checkPhase = ''
17+ LANG=en_US.utf-8 py.test blessed/tests
18+ '';
19+
1320 propagatedBuildInputs = [ wcwidth six ];
1421
1522 meta = with stdenv.lib; {