depot/third_party/nixpkgs/pkgs/development/python-modules/geopandas/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

39 lines
938 B
Nix

{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
, pandas, shapely, fiona, pyproj
, pytestCheckHook, Rtree }:
buildPythonPackage rec {
pname = "geopandas";
version = "0.9.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "geopandas";
repo = "geopandas";
rev = "v${version}";
sha256 = "sha256-58X562OkRzZ4UTNMTwXW4U5czoa5tbSMBCcE90DqbaE=";
};
propagatedBuildInputs = [
pandas
shapely
fiona
pyproj
];
doCheck = !stdenv.isDarwin;
checkInputs = [ pytestCheckHook Rtree ];
disabledTests = [
# requires network access
"test_read_file_remote_geojson_url"
"test_read_file_remote_zipfile_url"
];
pytestFlagsArray = [ "geopandas" ];
meta = with lib; {
description = "Python geospatial data analysis framework";
homepage = "https://geopandas.org";
license = licenses.bsd3;
maintainers = with maintainers; [ knedlsepp ];
};
}