python312Packages.pandera: skip failing tests (#382002)

This commit is contained in:
Gaétan Lepage
2025-02-14 20:36:50 +01:00
committed by GitHub
@@ -1,9 +1,13 @@
{
stdenv,
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
multimethod,
numpy,
packaging,
@@ -12,12 +16,8 @@
typeguard,
typing-inspect,
wrapt,
# test
joblib,
pyarrow,
pytestCheckHook,
pytest-asyncio,
# optional dependencies
# optional-dependencies
black,
dask,
fastapi,
@@ -28,6 +28,13 @@
pyyaml,
scipy,
shapely,
# tests
joblib,
pyarrow,
pytestCheckHook,
pytest-asyncio,
pythonAtLeast,
}:
buildPythonPackage rec {
@@ -99,6 +106,12 @@ buildPythonPackage rec {
pyarrow
] ++ optional-dependencies.all;
pytestFlagsArray = [
# KeyError: 'dask'
"--deselect=tests/dask/test_dask.py::test_series_schema"
"--deselect=tests/dask/test_dask_accessor.py::test_dataframe_series_add_schema"
];
disabledTestPaths = [
"tests/fastapi/test_app.py" # tries to access network
"tests/core/test_docs_setting_column_widths.py" # tests doc generation, requires sphinx
@@ -107,12 +120,17 @@ buildPythonPackage rec {
"tests/pyspark" # requires spark
];
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"
];
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"
];
pythonImportsCheck = [
"pandera"
@@ -125,7 +143,7 @@ buildPythonPackage rec {
meta = {
description = "Light-weight, flexible, and expressive statistical data testing library";
homepage = "https://pandera.readthedocs.io";
changelog = "https://github.com/unionai-oss/pandera/releases/tag/${src.tag}";
changelog = "https://github.com/unionai-oss/pandera/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};