2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fiona
|
|
|
|
, packaging
|
|
|
|
, pandas
|
|
|
|
, pyproj
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-03-15 16:39:30 +00:00
|
|
|
, rtree
|
2022-07-14 12:49:19 +00:00
|
|
|
, shapely
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geopandas";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.14.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geopandas";
|
|
|
|
repo = "geopandas";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-mQ13fjhtFXvUnBok5bDz+zkbgfXEUmwiv77rBpYS5oo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fiona
|
2022-07-14 12:49:19 +00:00
|
|
|
packaging
|
|
|
|
pandas
|
2020-04-24 23:36:52 +00:00
|
|
|
pyproj
|
2022-07-14 12:49:19 +00:00
|
|
|
shapely
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
pytestCheckHook
|
2023-03-15 16:39:30 +00:00
|
|
|
rtree
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
preCheck = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
export HOME=$(mktemp -d);
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
2022-07-14 12:49:19 +00:00
|
|
|
# Requires network access
|
2023-07-15 17:15:38 +00:00
|
|
|
"test_read_file_url"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"geopandas"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"geopandas"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python geospatial data analysis framework";
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://geopandas.org";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/geopandas/geopandas/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = teams.geospatial.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|