diff --git a/pkgs/development/python-modules/pandera/default.nix b/pkgs/development/python-modules/pandera/default.nix index ce68f97a5f7d..c42958c57fa9 100644 --- a/pkgs/development/python-modules/pandera/default.nix +++ b/pkgs/development/python-modules/pandera/default.nix @@ -20,6 +20,7 @@ # optional-dependencies black, dask, + duckdb, fastapi, geopandas, hypothesis, @@ -31,25 +32,25 @@ shapely, # tests - duckdb, joblib, - pyarrow, pyarrow-hotfix, - pytestCheckHook, + pyarrow, pytest-asyncio, + pytestCheckHook, pythonAtLeast, + rich, }: buildPythonPackage rec { pname = "pandera"; - version = "0.25.0"; + version = "0.26.1"; pyproject = true; src = fetchFromGitHub { owner = "unionai-oss"; repo = "pandera"; tag = "v${version}"; - hash = "sha256-0YeLeGpunjHRWFvSvz0r2BokM4/eJKXuBajgcGquca4="; + hash = "sha256-kjKsujDxX2+X6omP9qDWc2JI8bxQlOSVOcEnfACoL2I="; }; build-system = [ @@ -113,11 +114,12 @@ buildPythonPackage rec { extras // { all = lib.concatLists (lib.attrValues extras); }; nativeCheckInputs = [ - pytestCheckHook - pytest-asyncio joblib pyarrow pyarrow-hotfix + pytest-asyncio + pytestCheckHook + rich ] ++ optional-dependencies.all; @@ -133,17 +135,22 @@ buildPythonPackage rec { "tests/dask/test_dask_accessor.py::test_dataframe_series_add_schema" ]; - disabledTests = - lib.optionals stdenv.hostPlatform.isDarwin [ - # OOM error on ofborg: - "test_engine_geometry_coerce_crs" - # pandera.errors.SchemaError: Error while coercing 'geometry' to type geometry - "test_schema_dtype_crs_with_coerce" - ] - ++ lib.optionals (pythonAtLeast "3.13") [ - # AssertionError: assert DataType(Sparse[float64, nan]) == DataType(Sparse[float64, nan]) - "test_legacy_default_pandas_extension_dtype" - ]; + disabledTests = [ + # TypeError: __class__ assignment: 'GeoDataFrame' object... + "test_schema_model" + "test_schema_from_dataframe" + "test_schema_no_geometry" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # OOM error on ofborg: + "test_engine_geometry_coerce_crs" + # pandera.errors.SchemaError: Error while coercing 'geometry' to type geometry + "test_schema_dtype_crs_with_coerce" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # AssertionError: assert DataType(Sparse[float64, nan]) == DataType(Sparse[float64, nan]) + "test_legacy_default_pandas_extension_dtype" + ]; pythonImportsCheck = [ "pandera"