pythonPackages.fs: fix tests

This commit is contained in:
Jonathan Ringer 2019-10-26 17:51:50 -07:00 committed by Frederik Rietdijk
parent 27654139b5
commit 7a7bc3ef51

View file

@ -15,6 +15,7 @@
, mock , mock
, pythonAtLeast , pythonAtLeast
, isPy3k , isPy3k
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -27,7 +28,7 @@ buildPythonPackage rec {
}; };
buildInputs = [ glibcLocales ]; buildInputs = [ glibcLocales ];
checkInputs = [ nose pyftpdlib mock psutil ]; checkInputs = [ nose pyftpdlib mock psutil pytest ];
propagatedBuildInputs = [ six appdirs pytz ] propagatedBuildInputs = [ six appdirs pytz ]
++ lib.optionals (!isPy3k) [ backports_os ] ++ lib.optionals (!isPy3k) [ backports_os ]
++ lib.optionals (!pythonAtLeast "3.6") [ typing ] ++ lib.optionals (!pythonAtLeast "3.6") [ typing ]
@ -37,7 +38,7 @@ buildPythonPackage rec {
LC_ALL="en_US.utf-8"; LC_ALL="en_US.utf-8";
checkPhase = '' checkPhase = ''
HOME=$(mktemp -d) nosetests tests [] HOME=$(mktemp -d) pytest -k 'not user_data_repr' --ignore=tests/test_opener.py
''; '';
meta = with lib; { meta = with lib; {