13 oldest-supported-numpy,
18 buildPythonPackage rec {
23 disabled = pythonOlder "3.7";
26 inherit pname version;
27 hash = "sha256-mX9hWbFIQFnsI5ysqlNGf9i1Vk2r4YbNhKwpRGY7C/Y=";
31 # fixes build error with GCC 14
33 url = "https://github.com/shapely/shapely/commit/05455886750680728dc751dc5888cd02086d908e.patch";
34 hash = "sha256-YnmiWFfjHHFZCxrmabBINM4phqfLQ+6xEc30EoV5d98=";
40 geos # for geos-config
41 oldest-supported-numpy
46 buildInputs = [ geos ];
48 propagatedBuildInputs = [ numpy ];
50 nativeCheckInputs = [ pytestCheckHook ];
52 # Fix a ModuleNotFoundError. Investigated at:
53 # https://github.com/NixOS/nixpkgs/issues/255262
58 disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
59 # FIXME(lf-): these logging tests are broken, which is definitely our
60 # fault. I've tried figuring out the cause and failed.
62 # It is apparently some sandbox or no-sandbox related thing on macOS only
64 "test_error_handler_exception"
69 pythonImportsCheck = [ "shapely" ];
72 changelog = "https://github.com/shapely/shapely/blob/${version}/CHANGES.txt";
73 description = "Manipulation and analysis of geometric objects";
74 homepage = "https://github.com/shapely/shapely";
75 license = licenses.bsd3;
76 maintainers = teams.geospatial.members;