python312Packages.narwhals: init at 1.9.1
Lightweight and extensible compatibility layer between dataframe libraries https://github.com/narwhals-dev/narwhals
This commit is contained in:
committed by
Martin Weinelt
parent
a0b619163b
commit
6432b6e7a2
@@ -0,0 +1,71 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
# cudf,
|
||||
dask,
|
||||
dask-expr,
|
||||
duckdb,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
hypothesis,
|
||||
# modin,
|
||||
pandas,
|
||||
polars,
|
||||
pyarrow,
|
||||
pytest-env,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "narwhals";
|
||||
version = "1.9.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "narwhals-dev";
|
||||
repo = "narwhals";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-KUtmkDaHPaJ917/hVhJrt+x64JJYm06fyDfCV2nSa3s=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
# cudf = [ cudf ];
|
||||
dask = [
|
||||
dask
|
||||
dask-expr
|
||||
];
|
||||
# modin = [ modin ];
|
||||
pandas = [ pandas ];
|
||||
polars = [ polars ];
|
||||
pyarrow = [ pyarrow ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
duckdb
|
||||
hypothesis
|
||||
pytest-env
|
||||
pytestCheckHook
|
||||
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "narwhals" ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W"
|
||||
"ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Lightweight and extensible compatibility layer between dataframe libraries";
|
||||
homepage = "https://github.com/narwhals-dev/narwhals";
|
||||
changelog = "https://github.com/narwhals-dev/narwhals/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -8753,6 +8753,8 @@ self: super: with self; {
|
||||
|
||||
navec = callPackage ../development/python-modules/navec { };
|
||||
|
||||
narwhals = callPackage ../development/python-modules/narwhals { };
|
||||
|
||||
natasha = callPackage ../development/python-modules/natasha { };
|
||||
|
||||
natural = callPackage ../development/python-modules/natural { };
|
||||
|
||||
Reference in New Issue
Block a user