From 02fb1c031a0632e86086b1c17ee9945f63072879 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 10 Feb 2026 08:35:46 +0000 Subject: [PATCH] python3Packages.pyiceberg-core: 0.6.0 -> 0.8.0 Diff: https://github.com/apache/iceberg-rust/compare/v0.6.0...v0.8.0 Changelog: https://github.com/apache/iceberg-rust/blob/refs/tags/v0.8.0/CHANGELOG.md --- .../python-modules/pyiceberg-core/default.nix | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/pyiceberg-core/default.nix b/pkgs/development/python-modules/pyiceberg-core/default.nix index b3a60ba2842d..e251ad4b6778 100644 --- a/pkgs/development/python-modules/pyiceberg-core/default.nix +++ b/pkgs/development/python-modules/pyiceberg-core/default.nix @@ -6,32 +6,38 @@ # tests datafusion, + fastavro, pyarrow, + pydantic-core, + pyiceberg, pytestCheckHook, + + # passthru + pyiceberg-core, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyiceberg-core"; - version = "0.6.0"; + version = "0.8.0"; pyproject = true; src = fetchFromGitHub { owner = "apache"; repo = "iceberg-rust"; - tag = "v${version}"; - hash = "sha256-vRSZnMkZptGkLZBN1RRu0YGRQCOgJioBIghXnvU9UXc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-q5eghj469gT9FkbBMgrHcV1bMCTAgAzz1ir7zEx1DAk="; }; - sourceRoot = "${src.name}/bindings/python"; + sourceRoot = "${finalAttrs.src.name}/bindings/python"; cargoDeps = rustPlatform.fetchCargoVendor { - inherit + inherit (finalAttrs) pname version src sourceRoot ; - hash = "sha256-QfNVqyZ/O3vZAf689Fg5qPY6jcN4G1zo2eS2AEcdIL4="; + hash = "sha256-R/SgYjlxRvlkgn/n8O87Nko0BxenioACqonGa1c9h9E="; }; nativeBuildInputs = [ @@ -42,20 +48,32 @@ buildPythonPackage rec { pythonImportsCheck = [ "pyiceberg_core" ]; nativeCheckInputs = [ + datafusion + fastavro + pyiceberg pyarrow pytestCheckHook + ] + ++ pyiceberg.optional-dependencies.pyarrow + ++ pyiceberg.optional-dependencies.sql-sqlite; + + disabledTests = [ + # AttributeError: 'function' object has no attribute 'cache_clear' + "test_read_manifest_entry" ]; - disabledTestPaths = [ - # Circular dependency on pyiceberg - "tests/test_datafusion_table_provider.py" - ]; + # Circular dependency on pyiceberg + doCheck = false; + + passthru.tests.pytest = pyiceberg-core.overridePythonAttrs { + doCheck = true; + }; meta = { description = "Iceberg-rust powered core for pyiceberg"; homepage = "https://github.com/apache/iceberg-rust/tree/main/bindings/python"; - changelog = "https://github.com/apache/iceberg-rust/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/apache/iceberg-rust/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})