2022-03-02 21:42:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-03-31 02:49:37 +01:00
|
|
|
, pythonOlder
|
2022-03-02 21:42:23 +00:00
|
|
|
|
|
|
|
# build time
|
|
|
|
, cython
|
|
|
|
, gdal
|
|
|
|
|
|
|
|
# runtime
|
|
|
|
, affine
|
|
|
|
, attrs
|
|
|
|
, boto3
|
|
|
|
, click
|
|
|
|
, click-plugins
|
|
|
|
, cligj
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, snuggs
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, hypothesis
|
|
|
|
, packaging
|
|
|
|
, pytest-randomly
|
|
|
|
, pytestCheckHook
|
|
|
|
, shapely
|
2018-11-25 09:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rasterio";
|
2022-03-02 21:42:23 +00:00
|
|
|
version = "1.2.10"; # not x.y[ab]z, those are alpha/beta versions
|
|
|
|
format = "pyproject";
|
2022-03-29 13:42:56 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-11-25 09:25:31 +00:00
|
|
|
|
|
|
|
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
|
|
|
src = fetchFromGitHub {
|
2022-03-02 21:42:23 +00:00
|
|
|
owner = "rasterio";
|
2018-11-25 09:25:31 +00:00
|
|
|
repo = "rasterio";
|
|
|
|
rev = version;
|
2022-03-02 21:42:23 +00:00
|
|
|
hash = "sha256-xVGwQfQvxsqYihUYXENJAz9Qp9xBkhsGc/RheRTJxgo=";
|
2018-11-25 09:25:31 +00:00
|
|
|
};
|
|
|
|
|
2022-03-02 21:42:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
gdal
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
affine
|
|
|
|
attrs
|
|
|
|
boto3
|
|
|
|
click
|
|
|
|
click-plugins
|
|
|
|
cligj
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
snuggs
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
rm -rf rasterio
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-randomly
|
|
|
|
pytestCheckHook
|
|
|
|
packaging
|
|
|
|
hypothesis
|
|
|
|
shapely
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-m 'not network'"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"rasterio"
|
|
|
|
];
|
2018-11-25 09:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package to read and write geospatial raster data";
|
2020-02-29 18:14:43 +00:00
|
|
|
homepage = "https://rasterio.readthedocs.io/en/latest/";
|
2022-03-02 21:42:23 +00:00
|
|
|
license = licenses.bsd3;
|
2018-11-25 09:25:31 +00:00
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|