Merge pull request #320524 from GaetanLepage/rioxarray

python311Packages.rioxarray: disable failing tests on aarch64-linux
This commit is contained in:
OTABI Tomoya
2024-06-20 18:39:56 +09:00
committed by GitHub
@@ -1,18 +1,21 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
dask,
netcdf4,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
numpy,
packaging,
pyproj,
rasterio,
setuptools,
xarray,
# tests
dask,
netcdf4,
pytestCheckHook,
stdenv,
}:
buildPythonPackage rec {
@@ -24,13 +27,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "corteva";
repo = "rioxarray";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-bumFZQktgUqo2lyoLtDXkh6Vv5oS/wobqYpvNYy7La0=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
numpy
packaging
pyproj
@@ -44,13 +47,20 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [ "test_clip_geojson__no_drop" ];
disabledTests =
[ "test_clip_geojson__no_drop" ]
++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
# 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;
maintainers = lib.teams.geospatial.members;
};