Unverified Commit cbfb929e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.narwhals: 1.37.0 -> 1.38.2 (#407183)

parents 6e30a197 d23ae341
Loading
Loading
Loading
Loading
+15 −20
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  dask,
  duckdb,
  fetchFromGitHub,

  # build-system
  hatchling,

  # optional-dependencies
  # cudf,
  dask,
  # modin,
  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"