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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
numpy,
packaging,
pyproj,
rasterio,
xarray,
# tests
dask,
netcdf4,
pytestCheckHook,
stdenv,
}:
buildPythonPackage rec {
pname = "rioxarray";
version = "0.20.0";
pyproject = true;
src = fetchFromGitHub {
owner = "corteva";
repo = "rioxarray";
tag = version;
hash = "sha256-yLWCDaAcwQT2C0Nt1GaIA3NWXe6k2CDkBAr3rsm8eQs=";
};
build-system = [ setuptools ];
dependencies = [
numpy
packaging
pyproj
rasterio
xarray
];
nativeCheckInputs = [
dask
netcdf4
pytestCheckHook
];
disabledTests = [
# AssertionError: assert 535727386 == 535691205
"test_clip_geojson__no_drop"
# Fails with GDAL 3.11 warning
"test_rasterio_vrt"
# Fails with small numerical errors on GDAL 3.11
"test_rasterio_vrt_gcps"
"test_reproject__gcps"
# IndexError: range object index out of range (Python 3.13+)
"test_indexing"
]
++ lib.optionals stdenv.hostPlatform.isAarch64 [
# numerical errors
"test_clip_geojson"
"test_open_rasterio_mask_chunk_clip"
];
pythonImportsCheck = [ "rioxarray" ];
meta = {
description = "Geospatial xarray extension powered by rasterio";
homepage = "https://corteva.github.io/rioxarray/";
changelog = "https://github.com/corteva/rioxarray/releases/tag/${version}";
license = lib.licenses.asl20;
teams = [ lib.teams.geospatial ];
};
}
|