diff --git a/pkgs/development/python-modules/datafusion/default.nix b/pkgs/development/python-modules/datafusion/default.nix index a9ca4e859d89..6118e3d8589f 100644 --- a/pkgs/development/python-modules/datafusion/default.nix +++ b/pkgs/development/python-modules/datafusion/default.nix @@ -16,29 +16,31 @@ typing-extensions, # tests + arro3-core, + nanoarrow, numpy, pytest-asyncio, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "datafusion"; - version = "50.1.0"; + version = "52.3.0"; pyproject = true; src = fetchFromGitHub { name = "datafusion-source"; owner = "apache"; - repo = "arrow-datafusion-python"; - tag = version; + repo = "datafusion-python"; + tag = finalAttrs.version; # Fetch arrow-testing and parquet-testing (tests assets) fetchSubmodules = true; - hash = "sha256-+r3msFc9yu3aJBDRI66A/AIctCbLxfZB3Ur/raDV3x8="; + hash = "sha256-kyJoG65XKSF+RElZlsdfVTZp/ufWiUw0YdCpQ8Qcg78="; }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname src version; - hash = "sha256-XJ2x/EtMZu/fdS6XB/IydMfHmlaxEWJ3XJPY73WoGqs="; + inherit (finalAttrs) pname src version; + hash = "sha256-7/YWJORUjhhZSLyyBT6NFD0RzARJ3SKd11gn4kJ7aYw="; }; nativeBuildInputs = with rustPlatform; [ @@ -57,6 +59,8 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + arro3-core + nanoarrow numpy pytest-asyncio pytestCheckHook @@ -87,8 +91,8 @@ buildPythonPackage rec { that uses Apache Arrow as its in-memory format. ''; homepage = "https://arrow.apache.org/datafusion/"; - changelog = "https://github.com/apache/arrow-datafusion-python/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/apache/datafusion-python/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = with lib.licenses; [ asl20 ]; maintainers = with lib.maintainers; [ cpcloud ]; }; -} +})