mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
1d6fd65957
Additionally fix issue with tests failing for 18.09 release. Tests required url fetch. Disabled with "not web".
38 lines
790 B
Nix
38 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 ];
|
|
};
|
|
}
|