Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions pkgs/development/python-modules/pandera/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
pandas,
pydantic,
typeguard,
typing-extensions,
typing-inspect,

# optional-dependencies
Expand All @@ -22,30 +23,33 @@
fastapi,
geopandas,
hypothesis,
ibis-framework,
pandas-stubs,
polars,
pyyaml,
scipy,
shapely,

# tests
duckdb,
joblib,
pyarrow,
pyarrow-hotfix,
pytestCheckHook,
pytest-asyncio,
pythonAtLeast,
}:

buildPythonPackage rec {
pname = "pandera";
version = "0.24.0";
version = "0.25.0";
pyproject = true;

src = fetchFromGitHub {
owner = "unionai-oss";
repo = "pandera";
tag = "v${version}";
hash = "sha256-S5y717M3rGGO39TOh1X5yePvdcF6ct1Jk51/bbM6X6M=";
hash = "sha256-0YeLeGpunjHRWFvSvz0r2BokM4/eJKXuBajgcGquca4=";
};

build-system = [
Expand All @@ -56,11 +60,10 @@ buildPythonPackage rec {
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

dependencies = [
numpy
packaging
pandas
pydantic
typeguard
typing-extensions
typing-inspect
];

Expand Down Expand Up @@ -96,6 +99,14 @@ buildPythonPackage rec {
geopandas
shapely
];
ibis = [
ibis-framework
duckdb
];
pandas = [
numpy
pandas
];
polars = [ polars ];
};
in
Expand All @@ -106,6 +117,7 @@ buildPythonPackage rec {
pytest-asyncio
joblib
pyarrow
pyarrow-hotfix
] ++ optional-dependencies.all;

pytestFlagsArray = [
Expand Down Expand Up @@ -145,7 +157,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/v${version}";
changelog = "https://github.com/unionai-oss/pandera/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
Expand Down
Loading