depot/third_party/nixpkgs/pkgs/development/python-modules/geopandas/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

68 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fiona
, packaging
, pandas
, pyproj
, pytestCheckHook
, pythonOlder
, Rtree
, shapely
}:
buildPythonPackage rec {
pname = "geopandas";
version = "0.11.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "geopandas";
repo = "geopandas";
rev = "v${version}";
hash = "sha256-w3F2Uqr/+DdG2Td5YmHdF/LII2y29rQkGK5ooMUcfRk=";
};
propagatedBuildInputs = [
fiona
packaging
pandas
pyproj
shapely
];
checkInputs = [
pytestCheckHook
Rtree
];
doCheck = !stdenv.isDarwin;
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = [
# Requires network access
"test_read_file_remote_geojson_url"
"test_read_file_remote_zipfile_url"
];
pytestFlagsArray = [
"geopandas"
];
pythonImportsCheck = [
"geopandas"
];
meta = with lib; {
description = "Python geospatial data analysis framework";
homepage = "https://geopandas.org";
license = licenses.bsd3;
maintainers = with maintainers; [ knedlsepp ];
};
}