pythonPackages.sh: disable failing tests on Darwin

This commit is contained in:
Ben Wolsieffer
2018-12-21 17:44:21 -05:00
parent 26fb110d81
commit d08254f7ff
2 changed files with 53 additions and 0 deletions

View File

@@ -9,6 +9,10 @@ buildPythonPackage rec {
sha256 = "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm";
};
# Disable tests that fail on Darwin
# Some of the failures are due to Nix using GNU coreutils
patches = [ ./disable-broken-tests-darwin.patch ];
postPatch = ''
sed -i 's#/usr/bin/env python#${python.interpreter}#' test.py
'';