From d23ae341dbb6b1eef089406984ef4d2573351fff Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 May 2025 10:21:07 +0200 Subject: [PATCH] python312Packages.narwhals: 1.37.0 -> 1.38.2 Changelog: https://github.com/narwhals-dev/narwhals/releases/tag/v1.38.2 --- .../python-modules/narwhals/default.nix | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/narwhals/default.nix b/pkgs/development/python-modules/narwhals/default.nix index 6c9e162220d0..96484762249a 100644 --- a/pkgs/development/python-modules/narwhals/default.nix +++ b/pkgs/development/python-modules/narwhals/default.nix @@ -1,49 +1,37 @@ { lib, buildPythonPackage, - fetchFromGitHub, - - # build-system - hatchling, - - # optional-dependencies - # cudf, dask, - # modin, + duckdb, + fetchFromGitHub, + hatchling, + hypothesis, pandas, polars, pyarrow, pyspark, - sqlframe, - - # tests - duckdb, - hypothesis, pytest-env, pytestCheckHook, + sqlframe, }: buildPythonPackage rec { pname = "narwhals"; - version = "1.37.0"; + version = "1.38.2"; pyproject = true; src = fetchFromGitHub { owner = "narwhals-dev"; repo = "narwhals"; tag = "v${version}"; - hash = "sha256-AYgpHJwQVP+F2kr5YJtjnLNYedc81RvRcX1Cfh7c0xw="; + hash = "sha256-zqtYTqirAXLcpFA2sXczl0HPWL/3cYWws2yUfE8I8NY="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; optional-dependencies = { # cudf = [ cudf ]; - dask = [ - dask - ] ++ dask.optional-dependencies.dataframe; + dask = [ dask ] ++ dask.optional-dependencies.dataframe; # modin = [ modin ]; pandas = [ pandas ]; polars = [ polars ]; @@ -61,6 +49,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "narwhals" ]; + disabledTests = [ + # Flaky + "test_rolling_var_hypothesis" + # Missing file + "test_pyspark_connect_deps_2517" + ]; + pytestFlagsArray = [ "-W" "ignore::DeprecationWarning"