2024-03-12 22:39:21 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-20 08:17:47 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-03-12 22:39:21 +00:00
|
|
|
setuptools,
|
|
|
|
versioneer,
|
2024-07-20 08:17:47 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-03-12 22:39:21 +00:00
|
|
|
dask,
|
|
|
|
pandas,
|
|
|
|
pyarrow,
|
2024-07-20 08:17:47 +00:00
|
|
|
|
|
|
|
# checks
|
2024-03-12 22:39:21 +00:00
|
|
|
distributed,
|
|
|
|
pytestCheckHook,
|
2024-07-05 20:06:06 +00:00
|
|
|
xarray
|
2024-03-12 22:39:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-expr";
|
2024-10-17 14:00:27 +00:00
|
|
|
version = "1.1.16";
|
2024-03-12 22:39:21 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = "dask-expr";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-30 09:41:59 +00:00
|
|
|
hash = "sha256-HHoUQ6LfrlUnZNvvbPbQbNW6WLabGa88RsC9M8hlARI=";
|
2024-03-12 22:39:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "versioneer[toml]==0.28" "versioneer[toml]"
|
|
|
|
'';
|
|
|
|
|
2024-05-17 21:20:24 +00:00
|
|
|
build-system = [
|
2024-03-12 22:39:21 +00:00
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
2024-05-17 21:20:24 +00:00
|
|
|
dependencies = [
|
2024-03-12 22:39:21 +00:00
|
|
|
dask
|
|
|
|
pandas
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dask_expr" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
distributed
|
|
|
|
pytestCheckHook
|
2024-07-05 20:06:06 +00:00
|
|
|
xarray
|
2024-03-12 22:39:21 +00:00
|
|
|
];
|
|
|
|
|
2024-05-13 11:34:57 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-05-17 21:20:24 +00:00
|
|
|
meta = {
|
|
|
|
description = "Rewrite of Dask DataFrame that includes query optimization and generally improved organization";
|
2024-03-12 22:39:21 +00:00
|
|
|
homepage = "https://github.com/dask/dask-expr";
|
2024-05-17 21:20:24 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2024-03-12 22:39:21 +00:00
|
|
|
};
|
|
|
|
}
|