From 2ac2bd187eb9f76252f5dfea80c78549c64ed3b8 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Mon, 6 Feb 2017 15:42:38 -0500 Subject: [PATCH] pythonPackages.pyenchant: fix on darwin --- pkgs/top-level/python-packages.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1a7a5e6ae5a..51703404ac4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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