Files
nixpkgs/pkgs/development/python-modules/dask-mpi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
description = "Deploy Dask using mpi4py";
mainProgram = "dask-mpi";
homepage = "https://github.com/dask/dask-mpi";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}