2022-07-09 23:24:19 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fiona
|
|
|
|
, packaging
|
|
|
|
, pandas
|
|
|
|
, pyproj
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, Rtree
|
|
|
|
, shapely
|
|
|
|
}:
|
2017-09-03 09:06:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 19:26:09 +08:00
|
|
|
pname = "geopandas";
|
2022-12-10 23:37:19 +03:00
|
|
|
version = "0.12.2";
|
2022-07-09 23:24:19 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2017-09-03 09:06:33 +00:00
|
|
|
|
2017-09-05 08:20:30 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geopandas";
|
|
|
|
repo = "geopandas";
|
2022-10-25 04:04:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-12-10 23:37:19 +03:00
|
|
|
hash = "sha256-ntOZ2WCoMz5ZpqPeupqPC3cN8mbQmEAvJGaFblu0ibY=";
|
2017-09-03 09:06:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fiona
|
2022-07-09 23:24:19 +02:00
|
|
|
packaging
|
|
|
|
pandas
|
2017-09-03 09:06:33 +00:00
|
|
|
pyproj
|
2022-07-09 23:24:19 +02:00
|
|
|
shapely
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
Rtree
|
2017-09-03 09:06:33 +00:00
|
|
|
];
|
|
|
|
|
2021-01-10 08:06:26 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2022-07-09 23:24:19 +02:00
|
|
|
|
2021-11-05 22:35:06 +00:00
|
|
|
preCheck = ''
|
2022-07-09 23:24:19 +02:00
|
|
|
export HOME=$(mktemp -d);
|
2021-11-05 22:35:06 +00:00
|
|
|
'';
|
2022-07-09 23:24:19 +02:00
|
|
|
|
2021-05-19 09:55:40 +03:00
|
|
|
disabledTests = [
|
2022-07-09 23:24:19 +02:00
|
|
|
# Requires network access
|
2021-05-19 09:55:40 +03:00
|
|
|
"test_read_file_remote_geojson_url"
|
|
|
|
"test_read_file_remote_zipfile_url"
|
|
|
|
];
|
2022-07-09 23:24:19 +02:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"geopandas"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"geopandas"
|
|
|
|
];
|
2021-01-10 08:06:26 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-03 09:06:33 +00:00
|
|
|
description = "Python geospatial data analysis framework";
|
2020-04-24 17:01:20 +02:00
|
|
|
homepage = "https://geopandas.org";
|
2022-12-10 23:09:55 +01:00
|
|
|
changelog = "https://github.com/geopandas/geopandas/blob/v${version}/CHANGELOG.md";
|
2017-09-03 09:06:33 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|