depot/third_party/nixpkgs/pkgs/development/python-modules/dask-expr/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

68 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
# build-system
setuptools,
versioneer,
# dependencies
dask,
pandas,
pyarrow,
# checks
distributed,
pytestCheckHook,
xarray
}:
buildPythonPackage rec {
pname = "dask-expr";
version = "1.1.9";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "dask";
repo = "dask-expr";
rev = "refs/tags/v${version}";
hash = "sha256-DfXGQ5/aOIWcM9qcALMr3T6qi/l9gMF9HLaQwbzPdE4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "versioneer[toml]==0.28" "versioneer[toml]"
'';
build-system = [
setuptools
versioneer
];
dependencies = [
dask
pandas
pyarrow
];
pythonImportsCheck = [ "dask_expr" ];
nativeCheckInputs = [
distributed
pytestCheckHook
xarray
];
__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 ];
};
}