Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 37 lines 790 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, pandas, shapely, fiona, descartes, pyproj 3, pytest, Rtree }: 4 5buildPythonPackage rec { 6 pname = "geopandas"; 7 version = "0.4.0"; 8 name = pname + "-" + version; 9 10 src = fetchFromGitHub { 11 owner = "geopandas"; 12 repo = "geopandas"; 13 rev = "v${version}"; 14 sha256 = "025zpgck5pnmidvzk0805pr345rd7k6z66qb2m34gjh1814xjkhv"; 15 }; 16 17 checkInputs = [ pytest Rtree ]; 18 19 checkPhase = '' 20 py.test geopandas -m "not web" 21 ''; 22 23 propagatedBuildInputs = [ 24 pandas 25 shapely 26 fiona 27 descartes 28 pyproj 29 ]; 30 31 meta = with stdenv.lib; { 32 description = "Python geospatial data analysis framework"; 33 homepage = https://geopandas.org; 34 license = licenses.bsd3; 35 maintainers = with maintainers; [ knedlsepp ]; 36 }; 37}