2018-11-25 09:25:31 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub
|
|
|
|
, cython
|
|
|
|
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
|
|
|
|
, pytest, pytestcov, packaging, hypothesis, boto3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rasterio";
|
2019-01-02 13:05:53 +00:00
|
|
|
version = "1.0.13";
|
2018-11-25 09:25:31 +00:00
|
|
|
|
|
|
|
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapbox";
|
|
|
|
repo = "rasterio";
|
|
|
|
rev = version;
|
2019-01-02 13:05:53 +00:00
|
|
|
sha256 = "1l1ppclmcq4cmbqvplrpx9sscxfpjlba6w0114y1ma675w30bgfb";
|
2018-11-25 09:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ boto3 pytest pytestcov packaging hypothesis ];
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ gdal numpy attrs affine cligj click-plugins snuggs ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package to read and write geospatial raster data";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://rasterio.readthedocs.io/en/latest/;
|
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|