2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, isPy3k
|
|
|
|
, cython, setuptools
|
|
|
|
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest, pytest-cov, packaging, hypothesis, boto3, mock
|
2021-07-03 03:11:41 +00:00
|
|
|
, certifi, shapely
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rasterio";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "1.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapbox";
|
|
|
|
repo = "rasterio";
|
|
|
|
rev = version;
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "sha256-rf2qdUhbS4Z2+mvlN1RzZvlgTgjqiBoQzry4z5QLSUc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ boto3 pytest pytest-cov packaging hypothesis shapely ] ++ lib.optional (!isPy3k) mock;
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cython gdal ];
|
2021-07-03 03:11:41 +00:00
|
|
|
propagatedBuildInputs = [ certifi gdal numpy attrs affine cligj click-plugins snuggs setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|