anchor.diff:          ".travis.yml"
         ];
       })
  -
       # Patch to search form GOES .so/.dylib files in a Nix-aware way
       (substituteAll {
         src = ./library-paths.patch;
         libgeos_c = GEOS_LIBRARY_PATH;
         libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6";
       })
  -   # included in next release.
  -   (fetchpatch {
  -     url = "https://github.com/Toblerity/Shapely/commit/ea5b05a0c87235d3d8f09930ad47c396a76c8b0c.patch";
  -     sha256 = "sha256-egdydlV+tpXosSQwQFHaXaeBhXEHAs+mn7vLUDpvybA=";
  -   })
    ];
   
     preCheck = ''
  
positive.code:     pytestCheckHook
    ];
  
    # environment variable used in shapely/_buildcfg.py
    GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}";
  
    patches = [
  
negative.code:     "test_collection"
    ];
  
    pythonImportsCheck = [ "shapely" ];
  
    meta = with lib; {
      description = "Geometric objects, predicates, and operations";
      homepage = "https://pypi.python.org/pypi/Shapely/";
      license = with licenses; [ bsd3 ];
      maintainers = with maintainers; [ knedlsepp ];
    };
  }
  