2019-05-23 14:19:44 +01:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, isPy3k
|
2018-11-25 09:25:31 +00:00
|
|
|
, cython
|
|
|
|
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
|
2019-05-23 14:19:44 +01:00
|
|
|
, pytest, pytestcov, packaging, hypothesis, boto3, mock
|
2018-11-25 09:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rasterio";
|
2019-06-18 01:40:51 +01:00
|
|
|
version = "1.0.24";
|
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-06-18 01:40:51 +01:00
|
|
|
sha256 = "0k5y4h0c4cjn1xl5fayh3a001kl42vvrhjyhp5r2fwn22z56a02p";
|
2018-11-25 09:25:31 +00:00
|
|
|
};
|
|
|
|
|
2019-05-23 14:19:44 +01:00
|
|
|
checkInputs = [ boto3 pytest pytestcov packaging hypothesis ] ++ lib.optional (!isPy3k) mock;
|
2019-03-15 16:24:39 +00:00
|
|
|
nativeBuildInputs = [ cython gdal ];
|
2018-11-25 09:25:31 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|