1{ buildPythonPackage, lib, fetchFromGitHub, isPy3k 2, cython, setuptools 3, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal 4, pytest, pytest-cov, packaging, hypothesis, boto3, mock 5, certifi, shapely 6}: 7 8buildPythonPackage rec { 9 pname = "rasterio"; 10 version = "1.2.6"; 11 12 # Pypi doesn't ship the tests, so we fetch directly from GitHub 13 src = fetchFromGitHub { 14 owner = "mapbox"; 15 repo = "rasterio"; 16 rev = version; 17 sha256 = "sha256-rf2qdUhbS4Z2+mvlN1RzZvlgTgjqiBoQzry4z5QLSUc="; 18 }; 19 20 checkInputs = [ boto3 pytest pytest-cov packaging hypothesis shapely ] ++ lib.optional (!isPy3k) mock; 21 nativeBuildInputs = [ cython gdal ]; 22 propagatedBuildInputs = [ certifi gdal numpy attrs affine cligj click-plugins snuggs setuptools ]; 23 24 meta = with lib; { 25 description = "Python package to read and write geospatial raster data"; 26 license = licenses.bsd3; 27 homepage = "https://rasterio.readthedocs.io/en/latest/"; 28 maintainers = with maintainers; [ mredaelli ]; 29 }; 30}