2019-05-23 13:19:44 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, isPy3k
|
2019-09-30 14:06:12 +00:00
|
|
|
, cython, setuptools
|
2018-11-25 09:25:31 +00:00
|
|
|
, numpy, affine, attrs, cligj, click-plugins, snuggs, gdal
|
2019-05-23 13:19:44 +00:00
|
|
|
, pytest, pytestcov, packaging, hypothesis, boto3, mock
|
2021-06-30 19:01:40 +00:00
|
|
|
, certifi, shapely
|
2018-11-25 09:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rasterio";
|
2021-06-30 19:01:40 +00:00
|
|
|
version = "1.2.6";
|
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;
|
2021-06-30 19:01:40 +00:00
|
|
|
sha256 = "sha256-rf2qdUhbS4Z2+mvlN1RzZvlgTgjqiBoQzry4z5QLSUc=";
|
2018-11-25 09:25:31 +00:00
|
|
|
};
|
|
|
|
|
2021-06-30 19:01:40 +00:00
|
|
|
checkInputs = [ boto3 pytest pytestcov packaging hypothesis shapely ] ++ lib.optional (!isPy3k) mock;
|
2019-03-15 16:24:39 +00:00
|
|
|
nativeBuildInputs = [ cython gdal ];
|
2021-06-30 19:01:40 +00:00
|
|
|
propagatedBuildInputs = [ certifi gdal numpy attrs affine cligj click-plugins snuggs setuptools ];
|
2018-11-25 09:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package to read and write geospatial raster data";
|
|
|
|
license = licenses.bsd3;
|
2020-02-29 18:14:43 +00:00
|
|
|
homepage = "https://rasterio.readthedocs.io/en/latest/";
|
2018-11-25 09:25:31 +00:00
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|