From 869cac6faaa23732438aa4e016a61bc3efc8c1c4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 2 Sep 2025 10:19:22 +0200 Subject: [PATCH] python3Packages.fastexcel: 0.14.0 -> 0.15.1 Diff: https://github.com/ToucanToco/fastexcel/compare/v0.14.0...v0.15.1 Changelog: https://github.com/ToucanToco/fastexcel/releases/tag/v0.15.1 --- .../python-modules/fastexcel/default.nix | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/fastexcel/default.nix b/pkgs/development/python-modules/fastexcel/default.nix index 2f771895d8ab..a67d04082635 100644 --- a/pkgs/development/python-modules/fastexcel/default.nix +++ b/pkgs/development/python-modules/fastexcel/default.nix @@ -8,12 +8,10 @@ cargo, rustc, - # dependencies - pyarrow, - # optional-dependencies pandas, polars, + pyarrow, # tests pytest-mock, @@ -22,19 +20,19 @@ buildPythonPackage rec { pname = "fastexcel"; - version = "0.14.0"; + version = "0.15.1"; pyproject = true; src = fetchFromGitHub { owner = "ToucanToco"; repo = "fastexcel"; tag = "v${version}"; - hash = "sha256-sBpefpJm8b+6WQeO7zqihFDYPRnMZUQFSapcDkqekI0="; + hash = "sha256-kGGtTgy8k6TeP4iwonIwiQKiYMFAXw9v5Q5dpdcYP7A="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-gwLVxW9ETzvnI0tE8EWr8pUtvsBAQ/tC4tgEso15N3M="; + hash = "sha256-SdraNHOicCjIKFaTSRn4dEzfW8w243y/w9ym9JduMQo="; }; nativeBuildInputs = [ @@ -44,13 +42,17 @@ buildPythonPackage rec { rustc ]; - dependencies = [ - pyarrow + maturinBuildFlags = [ + "--features __maturin" ]; optional-dependencies = { + pyarrow = [ + pyarrow + ]; pandas = [ pandas + pyarrow ]; polars = [ polars @@ -59,11 +61,17 @@ buildPythonPackage rec { pythonImportsCheck = [ "fastexcel" + "fastexcel._fastexcel" ]; + preCheck = '' + rm -rf python/fastexcel + ''; + nativeCheckInputs = [ pandas polars + pyarrow pytest-mock pytestCheckHook ];