python3Packages.pyiceberg-core: init at 0.6.0
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
|
||||
# tests
|
||||
datafusion,
|
||||
pyarrow,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyiceberg-core";
|
||||
version = "0.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = "iceberg-rust";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-vRSZnMkZptGkLZBN1RRu0YGRQCOgJioBIghXnvU9UXc=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/bindings/python";
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit
|
||||
pname
|
||||
version
|
||||
src
|
||||
sourceRoot
|
||||
;
|
||||
hash = "sha256-QfNVqyZ/O3vZAf689Fg5qPY6jcN4G1zo2eS2AEcdIL4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyiceberg_core" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pyarrow
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Circular dependency on pyiceberg
|
||||
"tests/test_datafusion_table_provider.py"
|
||||
];
|
||||
|
||||
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";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
@@ -13162,6 +13162,8 @@ self: super: with self; {
|
||||
|
||||
pyiceberg = callPackage ../development/python-modules/pyiceberg { };
|
||||
|
||||
pyiceberg-core = callPackage ../development/python-modules/pyiceberg-core { };
|
||||
|
||||
pyicloud = callPackage ../development/python-modules/pyicloud { };
|
||||
|
||||
pyicu = callPackage ../development/python-modules/pyicu { };
|
||||
|
||||
Reference in New Issue
Block a user