nixpkgs-suyu/pkgs/development/python-modules/geopandas/default.nix
Chris Ostrouchov 1d6fd65957 pythonPackages.geopandas: 0.3.0 -> 0.4.0
Additionally fix issue with tests failing for 18.09 release.

Tests required url fetch. Disabled with "not web".
2018-09-06 18:50:11 +02:00

37 lines
790 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub
, pandas, shapely, fiona, descartes, pyproj
, pytest, Rtree }:
buildPythonPackage rec {
pname = "geopandas";
version = "0.4.0";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "geopandas";
repo = "geopandas";
rev = "v${version}";
sha256 = "025zpgck5pnmidvzk0805pr345rd7k6z66qb2m34gjh1814xjkhv";
};
checkInputs = [ pytest Rtree ];
checkPhase = ''
py.test geopandas -m "not web"
'';
propagatedBuildInputs = [
pandas
shapely
fiona
descartes
pyproj
];
meta = with stdenv.lib; {
description = "Python geospatial data analysis framework";
homepage = https://geopandas.org;
license = licenses.bsd3;
maintainers = with maintainers; [ knedlsepp ];
};
}