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

python3Packages.geopandas: add optional dependencies (#343267)

parents ee64103a 0294b22f
Loading
Loading
Loading
Loading
+32 −1
Original line number Diff line number Diff line
@@ -13,6 +13,17 @@
  pyproj,
  rtree,
  shapely,

  # optional-dependencies
  folium,
  geoalchemy2,
  geopy,
  mapclassify,
  matplotlib,
  psycopg,
  pyarrow,
  sqlalchemy,
  xyzservices,
}:

buildPythonPackage rec {
@@ -39,10 +50,30 @@ buildPythonPackage rec {
    shapely
  ];

  optional-dependencies = {
    all = [
      # prevent infinite recursion
      (folium.overridePythonAttrs (prevAttrs: {
        doCheck = false;
      }))
      geoalchemy2
      geopy
      # prevent infinite recursion
      (mapclassify.overridePythonAttrs (prevAttrs: {
        doCheck = false;
      }))
      matplotlib
      psycopg
      pyarrow
      sqlalchemy
      xyzservices
    ];
  };

  nativeCheckInputs = [
    pytestCheckHook
    rtree
  ];
  ] ++ optional-dependencies.all;

  doCheck = !stdenv.hostPlatform.isDarwin;