Unverified Commit aa1e58fe authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.rioxarray: 0.18.2 -> 0.19.0 (#401079)

parents c46884e6 904bb671
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  numpy,
  packaging,
  pyproj,
  rasterio,
  xarray,

  # tests
  dask,
  netcdf4,
@@ -21,15 +22,14 @@

buildPythonPackage rec {
  pname = "rioxarray";
  version = "0.18.2";
  version = "0.19.0";
  pyproject = true;
  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "corteva";
    repo = "rioxarray";
    tag = version;
    hash = "sha256-HNtMLY83e6MQakIlmsJohmhjDWiM5/hqq25qSY1dPBw=";
    hash = "sha256-tNcBuMyBVDVPbmujfn4WauquutOEn727lxcR19hfyuE=";
  };

  build-system = [ setuptools ];
@@ -49,10 +49,11 @@ buildPythonPackage rec {
  ];

  disabledTests =
    [ "test_clip_geojson__no_drop" ]
    ++ lib.optionals
      (stdenv.hostPlatform.system == "aarch64-linux" || stdenv.hostPlatform.system == "aarch64-darwin")
    [
      # AssertionError: assert 535727386 == 535691205
      "test_clip_geojson__no_drop"
    ]
    ++ lib.optionals stdenv.hostPlatform.isAarch64 [
      # numerical errors
      "test_clip_geojson"
      "test_open_rasterio_mask_chunk_clip"
@@ -61,9 +62,9 @@ buildPythonPackage rec {
  pythonImportsCheck = [ "rioxarray" ];

  meta = {
    description = "geospatial xarray extension powered by rasterio";
    description = "Geospatial xarray extension powered by rasterio";
    homepage = "https://corteva.github.io/rioxarray/";
    changelog = "https://github.com/corteva/rioxarray/releases/tag/${src.tag}";
    changelog = "https://github.com/corteva/rioxarray/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = lib.teams.geospatial.members;
  };