git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pyfakefs: fix darwin build

One test failed on darwin due to case-insensitive file system, disable it.

commitbd02a1931a4d8c6bf239de534890c64b16a33ab4 authorUli Baum <xeji@cat3.de> dateMon 10 Sep 2018, 22:42 (8 years ago) parentbc03639
1 file changed+5−1
pkgs/development/python-modules/pyfakefs/default.nix+5−1
pkgs/development/python-modules/pyfakefs/default.nix+5−1
@@ -22,7 +22,11 @@ buildPythonPackage rec {
2222 --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows"
2323 substituteInPlace pyfakefs/tests/fake_filesystem_unittest_test.py \
2424 --replace "test_copy_real_file" "notest_copy_real_file"
25− '';
25+ '' + (stdenv.lib.optionalString stdenv.isDarwin ''
26+ # this test fails on darwin due to case-insensitive file system
27+ substituteInPlace pyfakefs/tests/fake_os_test.py \
28+ --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
29+ '');
2630
2731 checkInputs = [ pytest glibcLocales ];
2832