1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build time
, cython
, gdal
# runtime
, affine
, attrs
, boto3
, click
, click-plugins
, cligj
, matplotlib
, numpy
, snuggs
# tests
, hypothesis
, packaging
, pytest-randomly
, pytestCheckHook
, shapely
}:
buildPythonPackage rec {
pname = "rasterio";
version = "1.2.10"; # not x.y[ab]z, those are alpha/beta versions
format = "pyproject";
disabled = pythonOlder "3.6";
# Pypi doesn't ship the tests, so we fetch directly from GitHub
src = fetchFromGitHub {
owner = "rasterio";
repo = "rasterio";
rev = version;
hash = "sha256-xVGwQfQvxsqYihUYXENJAz9Qp9xBkhsGc/RheRTJxgo=";
};
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"
];
meta = with lib; {
description = "Python package to read and write geospatial raster data";
homepage = "https://rasterio.readthedocs.io/en/latest/";
license = licenses.bsd3;
maintainers = with maintainers; [ mredaelli ];
};
}
|