2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools,
|
|
|
|
versioneer,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-05-15 15:35:15 +00:00
|
|
|
dask,
|
|
|
|
pandas,
|
|
|
|
pyarrow,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# checks
|
2024-05-15 15:35:15 +00:00
|
|
|
distributed,
|
|
|
|
pytestCheckHook,
|
2024-07-27 06:49:29 +00:00
|
|
|
xarray
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-expr";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.1.14";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = "dask-expr";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-yDNkIATN6AuGzcxTwAQyaQaDQ48v45hTC2fUqEThl/g=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "versioneer[toml]==0.28" "versioneer[toml]"
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2024-05-15 15:35:15 +00:00
|
|
|
dask
|
|
|
|
pandas
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dask_expr" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
distributed
|
|
|
|
pytestCheckHook
|
2024-07-27 06:49:29 +00:00
|
|
|
xarray
|
2024-05-15 15:35:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Rewrite of Dask DataFrame that includes query optimization and generally improved organization";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/dask/dask-expr";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
}
|