Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 93 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, buildPythonPackage, fetchPypi, rustPlatform, pyarrow, pyarrow-hotfix, openssl, stdenv, libiconv, pkg-config, pytestCheckHook, pytest-benchmark, pytest-cov, pytest-mock, pandas, azure-storage-blob,}:
buildPythonPackage rec { pname = "deltalake"; version = "0.20.1"; format = "pyproject";
src = fetchPypi { inherit pname version; hash = "sha256-serMb6Rirmw+QLpET3NT2djBoFBW/TGu1/5qYjiYpKE="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit src; hash = "sha256-WGnjVYws8ZZMv0MvBrohozxQuyOImktaLxuvAIiH+U0="; };
env.OPENSSL_NO_VENDOR = 1;
dependencies = [ pyarrow pyarrow-hotfix ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
nativeBuildInputs = [ pkg-config # openssl-sys needs this ] ++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]);
pythonImportsCheck = [ "deltalake" ];
nativeCheckInputs = [ pytestCheckHook pandas pytest-benchmark pytest-cov pytest-mock azure-storage-blob ];
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 '';
pytestFlagsArray = [ "-m 'not integration'" ];
meta = with lib; { description = "Native Rust library for Delta Lake, with bindings into Python"; homepage = "https://github.com/delta-io/delta-rs"; changelog = "https://github.com/delta-io/delta-rs/blob/python-v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ kfollesdal mslingsby harvidsen andershus ]; };}