Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 29 lines 897 B view raw
1{ buildPythonPackage, lib, fetchFromGitHub 2, cython 3, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal 4, pytest, pytestcov, packaging, hypothesis, boto3 5}: 6 7buildPythonPackage rec { 8 pname = "rasterio"; 9 version = "1.0.18"; 10 11 # Pypi doesn't ship the tests, so we fetch directly from GitHub 12 src = fetchFromGitHub { 13 owner = "mapbox"; 14 repo = "rasterio"; 15 rev = version; 16 sha256 = "05miivbn2c5slc5nn7fpdn1da42qwzg4z046i71f4r70bc49vsj9"; 17 }; 18 19 checkInputs = [ boto3 pytest pytestcov packaging hypothesis ]; 20 nativeBuildInputs = [ cython gdal ]; 21 propagatedBuildInputs = [ gdal numpy attrs affine cligj click-plugins snuggs ]; 22 23 meta = with lib; { 24 description = "Python package to read and write geospatial raster data"; 25 license = licenses.bsd3; 26 homepage = https://rasterio.readthedocs.io/en/latest/; 27 maintainers = with maintainers; [ mredaelli ]; 28 }; 29}