Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 36 lines 758 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.5.1"; 8 9 src = fetchFromGitHub { 10 owner = "geopandas"; 11 repo = "geopandas"; 12 rev = "v${version}"; 13 sha256 = "1j665fpkyfib17z0hn3bg2j96pbkgd36yfif6jyia4yn6g76hlfg"; 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 = https://geopandas.org; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ knedlsepp ]; 35 }; 36}