1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

python-shapely: bake path to libgeos_c into the library

This commit is contained in:
Peter Simons 2014-05-13 16:49:34 +02:00
parent 2083a23073
commit b86f217281

View file

@ -6755,7 +6755,7 @@ rec {
sha256 = "099sc7ajpp6hbgrx3c0bl6hhkz1mhnr0ahvc7s4i3f3b7q1zfn7l";
};
propagatedBuildInputs = [ pkgs.geos ];
buildInputs = [ pkgs.geos ];
preConfigure = ''
export LANG="en_US.UTF-8";
@ -6763,6 +6763,10 @@ rec {
export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive";
'';
patchPhase = ''
sed -i "s|_lgeos = load_dll('geos_c', fallbacks=.*)|_lgeos = load_dll('geos_c', fallbacks=['${pkgs.geos}/lib/libgeos_c.so'])|" shapely/geos.py
'';
doCheck = false; # won't suceed for unknown reasons that look harmless, though
meta = with stdenv.lib; {