diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2019-01-17 20:12:09 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-01-18 09:37:10 +0100 |
commit | 567cbef598bb970716ae9703c275b3e7a1447886 (patch) | |
tree | cdb05ffa170844774837df6189f5414649618f5f /pkgs/development/python-modules/fs | |
parent | 78beae43b0a82a4a3957611c99bfd0ee247790ec (diff) |
python.pkgs.fs: correctly run tests
Diffstat (limited to 'pkgs/development/python-modules/fs')
-rw-r--r-- | pkgs/development/python-modules/fs/default.nix | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/fs/default.nix b/pkgs/development/python-modules/fs/default.nix index 5e90d29cc5ad0..1ab01cf7d8960 100644 --- a/pkgs/development/python-modules/fs/default.nix +++ b/pkgs/development/python-modules/fs/default.nix @@ -1,4 +1,5 @@ -{ pkgs +{ lib +, glibcLocales , buildPythonPackage , fetchPypi , six @@ -25,24 +26,21 @@ buildPythonPackage rec { sha256 = "87e8d4e93040779a407c92b7f2f27117038927b4b1da41bdce23ce226557327d"; }; - buildInputs = [ pkgs.glibcLocales ]; + buildInputs = [ glibcLocales ]; checkInputs = [ nose pyftpdlib mock psutil ]; propagatedBuildInputs = [ six appdirs pytz ] - ++ pkgs.lib.optionals (!isPy3k) [ backports_os ] - ++ pkgs.lib.optionals (!pythonAtLeast "3.6") [ typing ] - ++ pkgs.lib.optionals (!pythonAtLeast "3.5") [ scandir ] - ++ pkgs.lib.optionals (!pythonAtLeast "3.5") [ enum34 ]; - - postPatch = '' - # required for installation - touch LICENSE - # tests modify home directory results in (4 tests failing) / 1600 - rm tests/test_appfs.py tests/test_opener.py - ''; + ++ lib.optionals (!isPy3k) [ backports_os ] + ++ lib.optionals (!pythonAtLeast "3.6") [ typing ] + ++ lib.optionals (!pythonAtLeast "3.5") [ scandir ] + ++ lib.optionals (!pythonAtLeast "3.5") [ enum34 ]; LC_ALL="en_US.utf-8"; - meta = with pkgs.lib; { + checkPhase = '' + HOME=$(mktemp -d) nosetests tests [] + ''; + + meta = with lib; { description = "Filesystem abstraction"; homepage = https://github.com/PyFilesystem/pyfilesystem2; license = licenses.bsd3; |