@@ -1,4 +1,4 @@
1−{ lib, stdenv, buildPythonPackage, fetchPypi, substituteAll, pythonOlder
1+{ lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, substituteAll, pythonOlder
22, geos, pytest, cython
33, numpy
44}:
@@ -31,7 +31,12 @@ buildPythonPackage rec {
3131 libgeos_c = GEOS_LIBRARY_PATH;
3232 libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6";
3333 })
34− ];
34+ # included in next release.
35+ (fetchpatch {
36+ url = "https://github.com/Toblerity/Shapely/commit/ea5b05a0c87235d3d8f09930ad47c396a76c8b0c.patch";
37+ sha256 = "sha256-egdydlV+tpXosSQwQFHaXaeBhXEHAs+mn7vLUDpvybA=";
38+ })
39+ ];
3540
3641 # Disable the tests that improperly try to use the built extensions
3742 checkPhase = ''