pythonPackages.pyenchant: point to enchant lib via PYENCHANT_LIBRARY_PATH

This commit is contained in:
Rok Garbas 2015-04-21 09:42:55 +02:00
parent f39b1ead2a
commit 314d146c8c
1 changed files with 1 additions and 7 deletions

View File

@ -8956,13 +8956,7 @@ let
md5 = "9f5acfd87d04432bf8df5f9710a17358";
};
propagatedBuildInputs = with pythonPackages; [ pkgs.enchant ];
patchPhase = let
path_hack_script = "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant}/lib/' + e_path)|";
in ''
sed -i "${path_hack_script}" enchant/_enchant.py
'';
PYENCHANT_LIBRARY_PATH="${pkgs.enchant}/lib/libenchant.so";
# dictionaries needed for tests
doCheck = false;