pythonPackages.pyenchant: point to enchant lib via PYENCHANT_LIBRARY_PATH
This commit is contained in:
parent
f39b1ead2a
commit
314d146c8c
@ -8956,13 +8956,7 @@ let
|
|||||||
md5 = "9f5acfd87d04432bf8df5f9710a17358";
|
md5 = "9f5acfd87d04432bf8df5f9710a17358";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ pkgs.enchant ];
|
PYENCHANT_LIBRARY_PATH="${pkgs.enchant}/lib/libenchant.so";
|
||||||
|
|
||||||
patchPhase = let
|
|
||||||
path_hack_script = "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant}/lib/' + e_path)|";
|
|
||||||
in ''
|
|
||||||
sed -i "${path_hack_script}" enchant/_enchant.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
# dictionaries needed for tests
|
# dictionaries needed for tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user