python312Packages.pandera: init at 0.20.4 (#354391)

authored by OTABI Tomoya and committed by GitHub fe63c159 d033c5a0

+134
+132
pkgs/development/python-modules/pandera/default.nix
···
··· 1 + { 2 + stdenv, 3 + lib, 4 + buildPythonPackage, 5 + fetchFromGitHub, 6 + setuptools, 7 + multimethod, 8 + numpy, 9 + packaging, 10 + pandas, 11 + pydantic, 12 + typeguard, 13 + typing-inspect, 14 + wrapt, 15 + # test 16 + joblib, 17 + pyarrow, 18 + pytestCheckHook, 19 + pytest-asyncio, 20 + # optional dependencies 21 + black, 22 + dask, 23 + fastapi, 24 + geopandas, 25 + hypothesis, 26 + pandas-stubs, 27 + polars, 28 + pyyaml, 29 + scipy, 30 + shapely, 31 + }: 32 + 33 + buildPythonPackage rec { 34 + pname = "pandera"; 35 + version = "0.20.4"; 36 + pyproject = true; 37 + 38 + src = fetchFromGitHub { 39 + owner = "unionai-oss"; 40 + repo = "pandera"; 41 + tag = "v${version}"; 42 + hash = "sha256-VetLfZlBWok7Mr1jxlHHjDH/D5xEsPFWQtX/hrvobgQ="; 43 + }; 44 + 45 + build-system = [ setuptools ]; 46 + 47 + dependencies = [ 48 + multimethod 49 + numpy 50 + packaging 51 + pandas 52 + pydantic 53 + typeguard 54 + typing-inspect 55 + wrapt 56 + ]; 57 + 58 + optional-dependencies = 59 + let 60 + dask-dataframe = [ dask ] ++ dask.optional-dependencies.dataframe; 61 + extras = { 62 + strategies = [ hypothesis ]; 63 + hypotheses = [ scipy ]; 64 + io = [ 65 + pyyaml 66 + black 67 + #frictionless # not in nixpkgs 68 + ]; 69 + # pyspark expression does not define optional-dependencies.connect: 70 + #pyspark = [ pyspark ] ++ pyspark.optional-dependencies.connect; 71 + # modin not in nixpkgs: 72 + #modin = [ 73 + # modin 74 + # ray 75 + #] ++ dask-dataframe; 76 + #modin-ray = [ 77 + # modin 78 + # ray 79 + #]; 80 + #modin-dask = [ 81 + # modin 82 + #] ++ dask-dataframe; 83 + dask = dask-dataframe; 84 + mypy = [ pandas-stubs ]; 85 + fastapi = [ fastapi ]; 86 + geopandas = [ 87 + geopandas 88 + shapely 89 + ]; 90 + polars = [ polars ]; 91 + }; 92 + in 93 + extras // { all = lib.concatLists (lib.attrValues extras); }; 94 + 95 + nativeCheckInputs = [ 96 + pytestCheckHook 97 + pytest-asyncio 98 + joblib 99 + pyarrow 100 + ] ++ optional-dependencies.all; 101 + 102 + disabledTestPaths = [ 103 + "tests/fastapi/test_app.py" # tries to access network 104 + "tests/core/test_docs_setting_column_widths.py" # tests doc generation, requires sphinx 105 + "tests/modin" # requires modin, not in nixpkgs 106 + "tests/mypy/test_static_type_checking.py" # some typing failures 107 + "tests/pyspark" # requires spark 108 + ]; 109 + 110 + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ 111 + # OOM error on ofborg: 112 + "test_engine_geometry_coerce_crs" 113 + # pandera.errors.SchemaError: Error while coercing 'geometry' to type geometry 114 + "test_schema_dtype_crs_with_coerce" 115 + ]; 116 + 117 + pythonImportsCheck = [ 118 + "pandera" 119 + "pandera.api" 120 + "pandera.config" 121 + "pandera.dtypes" 122 + "pandera.engines" 123 + ]; 124 + 125 + meta = { 126 + description = "Light-weight, flexible, and expressive statistical data testing library"; 127 + homepage = "https://pandera.readthedocs.io"; 128 + changelog = "https://github.com/unionai-oss/pandera/releases/tag/v${version}"; 129 + license = lib.licenses.mit; 130 + maintainers = with lib.maintainers; [ bcdarwin ]; 131 + }; 132 + }
+2
pkgs/top-level/python-packages.nix
··· 9981 9982 pandas-datareader = callPackage ../development/python-modules/pandas-datareader { }; 9983 9984 pandoc-attributes = callPackage ../development/python-modules/pandoc-attributes { }; 9985 9986 pandoc-latex-environment = callPackage ../development/python-modules/pandoc-latex-environment { };
··· 9981 9982 pandas-datareader = callPackage ../development/python-modules/pandas-datareader { }; 9983 9984 + pandera = callPackage ../development/python-modules/pandera { }; 9985 + 9986 pandoc-attributes = callPackage ../development/python-modules/pandoc-attributes { }; 9987 9988 pandoc-latex-environment = callPackage ../development/python-modules/pandoc-latex-environment { };