Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdal: 3.9.3 -> 3.10.0 #355220

Merged
merged 6 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions pkgs/by-name/pd/pdal/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
, stdenv
, callPackage
, fetchFromGitHub
, fetchpatch
, fetchurl
, testers

, enableE57 ? lib.meta.availableOn stdenv.hostPlatform libe57format
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -109,6 +119,14 @@ stdenv.mkDerivation (finalAttrs: {
"pdal_app_plugin_test"
];

# Add binary test file that we can’t 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
Expand Down
22 changes: 6 additions & 16 deletions pkgs/development/libraries/gdal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -43,6 +43,7 @@
json_c,
lerc,
libaom,
libavif,
libde265,
libdeflate,
libgeotiff,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -218,6 +208,7 @@ stdenv.mkDerivation (finalAttrs: {
python3.pkgs.numpy
]
++ tileDbDeps
++ libAvifDeps
++ libHeifDeps
++ libJxlDeps
++ mysqlDeps
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/rasterio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

buildPythonPackage rec {
pname = "rasterio";
version = "1.4.0";
version = "1.4.2";
format = "pyproject";

disabled = pythonOlder "3.8";
Expand All @@ -42,7 +42,7 @@ buildPythonPackage rec {
owner = "rasterio";
repo = "rasterio";
rev = "refs/tags/${version}";
hash = "sha256-A8o8FYuhlzL6Wl6sfB7D2KRAKZl28E6K2AdUik9zmgs=";
hash = "sha256-YGSd0IG6TWnHmDiVEE3F2KNQ4dXJhkPqAJsIrWyuHos=";
};

postPatch = ''
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/python-modules/rio-tiler/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

buildPythonPackage rec {
pname = "rio-tiler";
version = "7.0.1";
version = "7.2.2";
pyproject = true;
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "cogeotiff";
repo = "rio-tiler";
rev = "refs/tags/${version}";
hash = "sha256-E8gKXPj1n9HZ+zvQPcG28+2Vuif4B6NBhtuS009x6rU=";
hash = "sha256-uVLizNkUL7wGF0vFjPXb2iW9ILVkJcbDssXtp3E8ubE=";
};

build-system = [ hatchling ];
Expand Down Expand Up @@ -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;
};
}