98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
versioneer,
|
|
wheel,
|
|
dask,
|
|
pandas,
|
|
pyarrow,
|
|
distributed,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dask-expr";
|
|
version = "1.1.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dask";
|
|
repo = "dask-expr";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-O0s7jrxjTkIAb6zW+NuG1PPHhRHndcLt11uYNyknO4A=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "versioneer[toml]==0.28" "versioneer[toml]"
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
wheel
|
|
];
|
|
|
|
dependencies = [
|
|
dask
|
|
pandas
|
|
pyarrow
|
|
];
|
|
|
|
pythonImportsCheck = [ "dask_expr" ];
|
|
|
|
nativeCheckInputs = [
|
|
distributed
|
|
pytestCheckHook
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Rewrite of Dask DataFrame that includes query optimization and generally improved organization";
|
|
homepage = "https://github.com/dask/dask-expr";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|