Unverified Commit 2941e015 authored by Ivan Mincik's avatar Ivan Mincik Committed by GitHub
Browse files

python3Packages.shapely: 2.0.6 -> 2.0.7 (#383474)

parents 4028c38d f5e7229e
Loading
Loading
Loading
Loading
+11 −19
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  fetchpatch,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,

@@ -17,24 +16,17 @@

buildPythonPackage rec {
  pname = "shapely";
  version = "2.0.6";
  version = "2.0.7";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-mX9hWbFIQFnsI5ysqlNGf9i1Vk2r4YbNhKwpRGY7C/Y=";
  src = fetchFromGitHub {
    owner = "shapely";
    repo = "shapely";
    tag = version;
    hash = "sha256-oq08nDeCdS6ARISai/hKM74v+ezSxO2PpSzas/ZFVaw=";
  };

  patches = [
    # fixes build error with GCC 14
    (fetchpatch {
      url = "https://github.com/shapely/shapely/commit/05455886750680728dc751dc5888cd02086d908e.patch";
      hash = "sha256-YnmiWFfjHHFZCxrmabBINM4phqfLQ+6xEc30EoV5d98=";
    })
  ];

  nativeBuildInputs = [
    cython
    geos # for geos-config
@@ -45,7 +37,7 @@ buildPythonPackage rec {

  buildInputs = [ geos ];

  propagatedBuildInputs = [ numpy ];
  dependencies = [ numpy ];

  nativeCheckInputs = [ pytestCheckHook ];

@@ -68,11 +60,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "shapely" ];

  meta = with lib; {
  meta = {
    changelog = "https://github.com/shapely/shapely/blob/${version}/CHANGES.txt";
    description = "Manipulation and analysis of geometric objects";
    homepage = "https://github.com/shapely/shapely";
    license = licenses.bsd3;
    maintainers = teams.geospatial.members;
    license = lib.licenses.bsd3;
    maintainers = lib.teams.geospatial.members;
  };
}