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-09-30 11:47:45 +00:00
|
|
|
version = "0.11.1";
|
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";
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-vL+zC8q7bif5pheq6pz7XRfzMKLaLQ0xDceTz0imw/E=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|