Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.shapely: Fix search for libc

This should fix the search for libc's free method on both linux and
darwin.

+6 -2
+6 -2
pkgs/top-level/python-packages.nix
··· 21672 21672 export LANG="en_US.UTF-8"; 21673 21673 ''; 21674 21674 21675 - patchPhase = '' 21676 - sed -i "s|_lgeos = load_dll('geos_c', fallbacks=.*)|_lgeos = load_dll('geos_c', fallbacks=['${pkgs.geos}/lib/libgeos_c.so'])|" shapely/geos.py 21675 + patchPhase = let 21676 + libc = if stdenv.isDarwin then "libc.dylib" else "libc.so.6"; 21677 + in '' 21678 + sed -i "s|_lgeos = load_dll('geos_c', fallbacks=.*)|_lgeos = load_dll('geos_c', fallbacks=['${pkgs.geos}/lib/libgeos_c.${sharedLibraryExtension}'])|" shapely/geos.py 21679 + sed -i "s|free = load_dll('c').free|free = load_dll('c', fallbacks=['${stdenv.cc.libc}/lib/${libc}']).free|" shapely/geos.py 21677 21680 ''; 21678 21681 21679 21682 # tests/test_voctorized fails because the vectorized extension is not ··· 21684 21687 21685 21688 meta = { 21686 21689 description = "Geometric objects, predicates, and operations"; 21690 + maintainers = with maintainers; [ knedlsepp ]; 21687 21691 homepage = "https://pypi.python.org/pypi/Shapely/"; 21688 21692 }; 21689 21693 };