gdal: 3.9.3 -> 3.10.0 (#355220)

This commit is contained in:
Austin Horstman 2024-12-01 09:11:17 -06:00 committed by GitHub
commit eb578501ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 31 additions and 20 deletions

View File

@ -2,6 +2,8 @@
, stdenv
, callPackage
, fetchFromGitHub
, fetchpatch
, fetchurl
, testers
, enableE57 ? lib.meta.availableOn stdenv.hostPlatform libe57format
@ -37,6 +39,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-aRWVBCMGr/FX3g8tF7PP3sarN2DHx7AG3vvGAkQTuAM=";
};
patches = [
(fetchpatch {
name = "pdal-tests-gdal-3.10-compatibility.patch";
url = "https://github.com/PDAL/PDAL/commit/e6df3aa21f84ea49c79c338b87fe2e2797f4e44f.patch";
hash = "sha256-8AeWcMeZXth6y+Ox1rhK7cEySql//Jig46rHw7PyJh4=";
})
];
nativeBuildInputs = [
cmake
pkg-config
@ -109,6 +119,14 @@ stdenv.mkDerivation (finalAttrs: {
"pdal_app_plugin_test"
];
# Add binary test file that we cant apply from the patch.
postPatch = ''
ln -s ${fetchurl {
url = "https://github.com/PDAL/PDAL/raw/e6df3aa21f84ea49c79c338b87fe2e2797f4e44f/test/data/gdal/1234_red_0_green_0_blue.tif";
hash = "sha256-x/jHMhZTKmQxlTkswDGszhBIfP/qgY0zJ8QIz+wR5S4=";
}} test/data/gdal/1234_red_0_green_0_blue.tif
'';
checkPhase = ''
runHook preCheck
# tests are flaky and they seem to fail less often when they don't run in

View File

@ -3,13 +3,13 @@
stdenv,
callPackage,
fetchFromGitHub,
fetchpatch,
useMinimalFeatures ? false,
useArmadillo ? (!useMinimalFeatures),
useArrow ? (!useMinimalFeatures),
useHDF ? (!useMinimalFeatures),
useJava ? (!useMinimalFeatures),
useLibAvif ? (!useMinimalFeatures),
useLibHEIF ? (!useMinimalFeatures),
useLibJXL ? (!useMinimalFeatures),
useMysql ? (!useMinimalFeatures),
@ -43,6 +43,7 @@
json_c,
lerc,
libaom,
libavif,
libde265,
libdeflate,
libgeotiff,
@ -82,27 +83,15 @@
stdenv.mkDerivation (finalAttrs: {
pname = "gdal" + lib.optionalString useMinimalFeatures "-minimal";
version = "3.9.3";
version = "3.10.0";
src = fetchFromGitHub {
owner = "OSGeo";
repo = "gdal";
rev = "v${finalAttrs.version}";
hash = "sha256-8LY63s5vOVK0V37jQ60qFsaW/2D/13Xuy9/2OPLyTso=";
hash = "sha256-pb2xKTmJB7U1jIG80ENmZrR7vFw6YDoees43u/JhU3Y=";
};
patches = [
(fetchpatch {
url = "https://github.com/OSGeo/gdal/commit/40c3212fe4ba93e5176df4cd8ae5e29e06bb6027.patch";
sha256 = "sha256-D55iT6E/YdpSyfN7KUDTh1gdmIDLHXW4VC5d6D9B7ls=";
})
(fetchpatch {
name = "arrow-18.patch";
url = "https://github.com/OSGeo/gdal/commit/9a8c5c031404bbc81445291bad128bc13766cafa.patch";
sha256 = "sha256-tF46DmF7ZReqY8ACTTPXohWLsRn8lVxhKF1s+r254KM=";
})
];
nativeBuildInputs =
[
bison
@ -150,6 +139,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs =
let
tileDbDeps = lib.optionals useTiledb [ tiledb ];
libAvifDeps = lib.optionals useLibAvif [ libavif ];
libHeifDeps = lib.optionals useLibHEIF [
libheif
dav1d
@ -218,6 +208,7 @@ stdenv.mkDerivation (finalAttrs: {
python3.pkgs.numpy
]
++ tileDbDeps
++ libAvifDeps
++ libHeifDeps
++ libJxlDeps
++ mysqlDeps
@ -301,7 +292,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals stdenv.hostPlatform.isDarwin [
# flaky on macos
"test_rda_download_queue"
"test_ogr_gpkg_arrow_stream_huge_array"
]
++ lib.optionals (lib.versionOlder proj.version "8") [
"test_ogr_parquet_write_crs_without_id_in_datum_ensemble_members"

View File

@ -33,7 +33,7 @@
buildPythonPackage rec {
pname = "rasterio";
version = "1.4.0";
version = "1.4.2";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -42,7 +42,7 @@ buildPythonPackage rec {
owner = "rasterio";
repo = "rasterio";
rev = "refs/tags/${version}";
hash = "sha256-A8o8FYuhlzL6Wl6sfB7D2KRAKZl28E6K2AdUik9zmgs=";
hash = "sha256-YGSd0IG6TWnHmDiVEE3F2KNQ4dXJhkPqAJsIrWyuHos=";
};
postPatch = ''

View File

@ -23,7 +23,7 @@
buildPythonPackage rec {
pname = "rio-tiler";
version = "7.0.1";
version = "7.2.2";
pyproject = true;
disabled = pythonOlder "3.8";
@ -31,7 +31,7 @@ buildPythonPackage rec {
owner = "cogeotiff";
repo = "rio-tiler";
rev = "refs/tags/${version}";
hash = "sha256-E8gKXPj1n9HZ+zvQPcG28+2Vuif4B6NBhtuS009x6rU=";
hash = "sha256-uVLizNkUL7wGF0vFjPXb2iW9ILVkJcbDssXtp3E8ubE=";
};
build-system = [ hatchling ];
@ -62,5 +62,8 @@ buildPythonPackage rec {
homepage = "https://cogeotiff.github.io/rio-tiler/";
license = licenses.bsd3;
maintainers = lib.teams.geospatial.members;
# Tests broken with gdal 3.10
# https://github.com/cogeotiff/rio-tiler/issues/769
broken = true;
};
}