Unverified Commit af1bfc07 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

deltalake: 0.25.5 -> 1.1.2 (#440208)

parents 8d5a0bb1 72c55a08
Loading
Loading
Loading
Loading
+10 −15
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
  buildPythonPackage,
  fetchPypi,
  rustPlatform,
  arro3-core,
  pyarrow,
  pyarrow-hotfix,
  openssl,
  stdenv,
  libiconv,
@@ -14,30 +14,32 @@
  pytest-benchmark,
  pytest-cov-stub,
  pytest-mock,
  pytest-timeout,
  pandas,
  deprecated,
  azure-storage-blob,
}:

buildPythonPackage rec {
  pname = "deltalake";
  version = "0.25.5";
  version = "1.1.2";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Fz5Lg/z/EPJkdK4RcWHD8r3V9EwwwgRjwktri1IOdlY=";
    hash = "sha256-s/iWYoh2zARl3M+0DPdur5d8a1URl+jinaMPBFeruEE=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    hash = "sha256-6SGVKJu01MzZxJv29PZKea+Z2YwAnvzbdDlnA4R6Az0=";
    hash = "sha256-JYstNjd/KC9xp2h72vkQfin/LXNTXeb0hLpGUiGgRlE=";
  };

  env.OPENSSL_NO_VENDOR = 1;

  dependencies = [
    pyarrow
    pyarrow-hotfix
    arro3-core
    deprecated
  ];

  buildInputs = [
@@ -64,26 +66,19 @@ buildPythonPackage rec {
    pytest-benchmark
    pytest-cov-stub
    pytest-mock
    pytest-timeout
    azure-storage-blob
    pyarrow
  ];

  preCheck = ''
    # For paths in test to work, we have to be in python dir
    cp pyproject.toml python/
    cd python

    # In tests we want to use deltalake that we have built
    rm -rf deltalake
  '';

  pytestFlags = [
    "--benchmark-disable"
  ];

  disabledTestMarks = [
    "integration"
  ];

  meta = with lib; {
    description = "Native Rust library for Delta Lake, with bindings into Python";
    homepage = "https://github.com/delta-io/delta-rs";