2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
setuptools,
|
|
|
|
versioneer,
|
|
|
|
dask,
|
|
|
|
distributed,
|
|
|
|
grpcio,
|
|
|
|
skein,
|
|
|
|
pytestCheckHook,
|
|
|
|
stdenv,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-yarn";
|
|
|
|
version = "0.9";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "dask-yarn";
|
|
|
|
rev = "refs/tags/${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-/BTsxQSiVQrihrCa9DE7pueyg3aPAdjd/Dt4dpUwdtM=";
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
patches = [
|
2024-06-05 15:53:02 +00:00
|
|
|
(fetchpatch {
|
|
|
|
# https://github.com/dask/dask-yarn/pull/150
|
2024-01-02 11:29:13 +00:00
|
|
|
name = "address-deprecations-introduced-in-distributed-2021-07-0";
|
|
|
|
url = "https://github.com/dask/dask-yarn/pull/150/commits/459848afcdc22568905ee98622c74e4071496423.patch";
|
|
|
|
hash = "sha256-LS46QBdiAmsp4jQq4DdYdmmk1qzx5JZNTQUlRcRwY5k=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm versioneer.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
dask
|
2024-05-15 15:35:15 +00:00
|
|
|
distributed
|
2022-04-27 09:35:20 +00:00
|
|
|
grpcio
|
|
|
|
skein
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dask_yarn" ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# skein.exceptions.DriverError: Failed to start java process
|
|
|
|
"test_basic"
|
|
|
|
"test_adapt"
|
|
|
|
"test_from_specification"
|
|
|
|
"test_from_application_id"
|
|
|
|
"test_from_current"
|
|
|
|
"test_basic_async"
|
|
|
|
"test_widget_and_html_reprs"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deploy dask on YARN clusters";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dask-yarn";
|
2024-06-05 15:53:02 +00:00
|
|
|
longDescription = ''
|
|
|
|
Dask-Yarn deploys Dask on YARN clusters,
|
|
|
|
such as are found in traditional Hadoop installations.
|
|
|
|
Dask-Yarn provides an easy interface to quickly start,
|
|
|
|
stop, and scale Dask clusters natively from Python.
|
2022-04-27 09:35:20 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://yarn.dask.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ illustris ];
|
2022-12-17 10:02:37 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|