pythonPackages.pyenchant: fix on darwin

This commit is contained in:
Dan Peebles 2017-02-06 15:42:38 -05:00
parent 6091bdfebe
commit 2ac2bd187e

View File

@ -19967,6 +19967,9 @@ in {
path_hack_script = "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant}/lib/' + e_path)|";
in ''
sed -i "${path_hack_script}" enchant/_enchant.py
# They hardcode a bad path for Darwin in their library search code
substituteInPlace enchant/_enchant.py --replace '/opt/local/lib/' ""
'';
# dictionaries needed for tests