1{ stdenv, buildPythonPackage, fetchFromGitHub
2, pandas, shapely, fiona, descartes, pyproj
3, pytest, Rtree }:
4
5buildPythonPackage rec {
6 pname = "geopandas";
7 version = "0.6.3";
8
9 src = fetchFromGitHub {
10 owner = "geopandas";
11 repo = "geopandas";
12 rev = "v${version}";
13 sha256 = "11mzb5spwa06h1zhn7z905wcwya2x5srghv82jp5zjka9zdhsycd";
14 };
15
16 checkInputs = [ pytest Rtree ];
17
18 checkPhase = ''
19 py.test geopandas -m "not web"
20 '';
21
22 propagatedBuildInputs = [
23 pandas
24 shapely
25 fiona
26 descartes
27 pyproj
28 ];
29
30 meta = with stdenv.lib; {
31 description = "Python geospatial data analysis framework";
32 homepage = "http://geopandas.org";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ knedlsepp ];
35 };
36}