Merge pull request #289323 from ElleNajt/update-datafusion

python3Packages.datafusion: 25.0.0 -> 35.0.0
This commit is contained in:
a-n-n-a-l-e-e 2024-02-26 04:13:50 -08:00 committed by GitHub
commit 36a204129d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View File

@ -9,6 +9,7 @@
, protobuf , protobuf
, pyarrow , pyarrow
, Security , Security
, SystemConfiguration
}: }:
let let
@ -31,7 +32,7 @@ in
buildPythonPackage rec { buildPythonPackage rec {
pname = "datafusion"; pname = "datafusion";
version = "25.0.0"; version = "35.0.0";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -39,13 +40,13 @@ buildPythonPackage rec {
owner = "apache"; owner = "apache";
repo = "arrow-datafusion-python"; repo = "arrow-datafusion-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-oC+fp41a9rsdobpvShZ7sDdtYPJQQ7JLg6MFL+4Pksg="; hash = "sha256-43XY7j/8x+7SCY4W8nysaeWax2nvTTHZXMmy3hSz6pI=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
name = "datafusion-cargo-deps"; name = "datafusion-cargo-deps";
inherit src pname version; inherit src pname version;
hash = "sha256-0e0ZRgwcS/46mi4c2loAnBA2bsaD+/RiMh7oNg3EvHY="; hash = "sha256-YWAyEMojw0bc/fu5kIZKMNPEgsAIpWqjVNodWXbgTl4=";
}; };
nativeBuildInputs = with rustPlatform; [ nativeBuildInputs = with rustPlatform; [
@ -53,7 +54,11 @@ buildPythonPackage rec {
maturinBuildHook maturinBuildHook
]; ];
buildInputs = [ protobuf ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ]; buildInputs = [ protobuf ] ++ lib.optionals stdenv.isDarwin [
libiconv
Security
SystemConfiguration
];
propagatedBuildInputs = [ pyarrow ]; propagatedBuildInputs = [ pyarrow ];

View File

@ -2669,7 +2669,7 @@ self: super: with self; {
datadog = callPackage ../development/python-modules/datadog { }; datadog = callPackage ../development/python-modules/datadog { };
datafusion = callPackage ../development/python-modules/datafusion { datafusion = callPackage ../development/python-modules/datafusion {
inherit (pkgs.darwin.apple_sdk.frameworks) Security; inherit (pkgs.darwin.apple_sdk.frameworks) Security SystemConfiguration;
}; };
datamodeldict = callPackage ../development/python-modules/datamodeldict { }; datamodeldict = callPackage ../development/python-modules/datamodeldict { };