mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-29 05:25:48 +00:00
95 lines
1.7 KiB
Nix
95 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
writableTmpDirAsHomeHook,
|
|
|
|
packaging,
|
|
pandas,
|
|
pyogrio,
|
|
pyproj,
|
|
rtree,
|
|
shapely,
|
|
|
|
# optional-dependencies
|
|
folium,
|
|
geoalchemy2,
|
|
geopy,
|
|
mapclassify,
|
|
matplotlib,
|
|
psycopg,
|
|
pyarrow,
|
|
sqlalchemy,
|
|
xyzservices,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "geopandas";
|
|
version = "1.1.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geopandas";
|
|
repo = "geopandas";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-66FbHNewpSEVZ9RwngK7E4bcELa9Z2OQ9xVP9+fgeHQ=";
|
|
};
|
|
|
|
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
|
|
writableTmpDirAsHomeHook
|
|
]
|
|
++ finalAttrs.passthru.optional-dependencies.all;
|
|
|
|
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/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.geospatial ];
|
|
};
|
|
})
|