Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fetchpatch,
|
|
dask,
|
|
distributed,
|
|
mpi4py,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dask-mpi";
|
|
version = "2022.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CgTx19NaBs3/UGWTMw1EFOokLJFySYzhkfV0LqxJnhc=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/dask/dask-mpi/pull/123
|
|
(fetchpatch {
|
|
name = "fix-versioneer-on-python312.patch";
|
|
url = "https://github.com/dask/dask-mpi/pull/123/commits/0f3b0286b7e29b5d5475561a148dc398108fc259.patch";
|
|
hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
dask
|
|
distributed
|
|
mpi4py
|
|
];
|
|
|
|
# Hardcoded mpirun path in tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "dask_mpi" ];
|
|
|
|
meta = with lib; {
|
|
description = "Deploy Dask using mpi4py";
|
|
mainProgram = "dask-mpi";
|
|
homepage = "https://github.com/dask/dask-mpi";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|