4f0dadbf38
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
97 lines
1.8 KiB
Nix
97 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
rustPlatform,
|
|
pyarrow,
|
|
pyarrow-hotfix,
|
|
openssl,
|
|
stdenv,
|
|
darwin,
|
|
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.fetchCargoTarball {
|
|
inherit src;
|
|
hash = "sha256-NkXovFsX+qbca+gYeBMQnacNzubloWNW/GrXNeWquE8=";
|
|
};
|
|
|
|
env.OPENSSL_NO_VENDOR = 1;
|
|
|
|
dependencies = [
|
|
pyarrow
|
|
pyarrow-hotfix
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
openssl
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
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
|
|
];
|
|
};
|
|
}
|