2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, isPy3k
|
|
|
|
, cython, setuptools
|
|
|
|
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
|
2022-03-30 09:31:56 +00:00
|
|
|
, pytest, pythonOlder, packaging, hypothesis, boto3
|
2021-07-03 03:11:41 +00:00
|
|
|
, certifi, shapely
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rasterio";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.2.10";
|
|
|
|
disabled = pythonOlder "3.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;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-xVGwQfQvxsqYihUYXENJAz9Qp9xBkhsGc/RheRTJxgo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
checkInputs = [ boto3 pytest packaging hypothesis shapely ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|