Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 45 lines 1.1 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27 2, pandas, shapely, fiona, descartes, pyproj 3, pytest, Rtree, fetchpatch }: 4 5buildPythonPackage rec { 6 pname = "geopandas"; 7 version = "0.8.1"; 8 disabled = isPy27; 9 10 src = fetchFromGitHub { 11 owner = "geopandas"; 12 repo = "geopandas"; 13 rev = "v${version}"; 14 sha256 = "0618p0s0biisxk2s0h43hkc3bs1nwjk84rxbfyd6brfvs9yx4vq7"; 15 }; 16 17 patches = [ 18 # Fix for test test_numerical_operations: https://github.com/geopandas/geopandas/issues/1541 19 (fetchpatch { 20 url = "https://github.com/geopandas/geopandas/pull/1544/commits/6ce868a33a2f483b071089d51e178030fa4414d0.patch"; 21 sha256 = "1sjgxrqgbhz5krx51hrv230ywszcdl6z8q3bj6830kfad8n8b5dq"; 22 }) 23 ]; 24 25 checkInputs = [ pytest Rtree ]; 26 27 checkPhase = '' 28 py.test geopandas -m "not web" 29 ''; 30 31 propagatedBuildInputs = [ 32 pandas 33 shapely 34 fiona 35 descartes 36 pyproj 37 ]; 38 39 meta = with stdenv.lib; { 40 description = "Python geospatial data analysis framework"; 41 homepage = "https://geopandas.org"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ knedlsepp ]; 44 }; 45}