Files
nixpkgs/pkgs/development/python-modules/geopandas/default.nix
T
Martin Weinelt c48fb94f4a python3Packages.geopandas: 1.1.1 -> 1.1.2
https://github.com/geopandas/geopandas/blob/v1.1.2/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:09 +01:00

97 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytestCheckHook,
setuptools,
packaging,
pandas,
pyogrio,
pyproj,
rtree,
shapely,
# optional-dependencies
folium,
geoalchemy2,
geopy,
mapclassify,
matplotlib,
psycopg,
pyarrow,
sqlalchemy,
xyzservices,
}:
buildPythonPackage rec {
pname = "geopandas";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "geopandas";
repo = "geopandas";
tag = "v${version}";
hash = "sha256-TBb9Bb12OZ9RWiwAGU6JKqiumw1C11USycpKM8mJVdU=";
};
build-system = [ setuptools ];
dependencies = [
packaging
pandas
pyogrio
pyproj
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;
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = [
# Requires network access
"test_read_file_url"
];
enabledTestPaths = [ "geopandas" ];
pythonImportsCheck = [ "geopandas" ];
meta = {
description = "Python geospatial data analysis framework";
homepage = "https://geopandas.org";
changelog = "https://github.com/geopandas/geopandas/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
teams = [ lib.teams.geospatial ];
};
}