2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fiona
|
|
|
|
, packaging
|
|
|
|
, pandas
|
|
|
|
, pyproj
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, Rtree
|
|
|
|
, shapely
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geopandas";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.12.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
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}";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-ntOZ2WCoMz5ZpqPeupqPC3cN8mbQmEAvJGaFblu0ibY=";
|
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
|
|
|
|
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
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_read_file_remote_geojson_url"
|
|
|
|
"test_read_file_remote_zipfile_url"
|
|
|
|
];
|
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;
|
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|