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

python3Packages.odc-stac: 0.3.11 -> 0.4.0rc2 (#396325)

parents 27b10ae5 d4be6588
Loading
Loading
Loading
Loading
+6 −16
Original line number Diff line number Diff line
@@ -4,13 +4,14 @@
  fetchFromGitHub,

  # build-system
  setuptools,
  hatchling,

  # dependencies
  affine,
  dask,
  numpy,
  odc-geo,
  odc-loader,
  pandas,
  pystac,
  rasterio,
@@ -29,27 +30,18 @@

buildPythonPackage rec {
  pname = "odc-stac";
  version = "0.3.11";
  version = "0.4.0rc2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "opendatacube";
    repo = "odc-stac";
    tag = "v${version}";
    hash = "sha256-uudBzxVGt3RW4ppDrFYfA9LMa2xPfs3FTBzVS19FjB4=";
    hash = "sha256-I25qAJEryYaYO7KIVIoTlgzLS6PWkNG6b4NFyhghyKQ=";
  };

  # ImportError: cannot import name 'quote' from 'dask.base'
  # https://github.com/dask/dask/issues/11843
  postPatch = ''
    substituteInPlace odc/loader/_builder.py \
      --replace-fail \
        "from dask.base import quote, tokenize" \
        "from dask.base import tokenize; from dask.core import quote"
  '';

  build-system = [
    setuptools
    hatchling
  ];

  dependencies = [
@@ -57,6 +49,7 @@ buildPythonPackage rec {
    dask
    numpy
    odc-geo
    odc-loader
    pandas
    pystac
    rasterio
@@ -85,9 +78,6 @@ buildPythonPackage rec {
    # urllib url open error
    "test_norm_geom"
    "test_output_geobox"
    "test_mem_reader"
    "test_memreader_zarr"

  ];

  pythonImportsCheck = [