1{ stdenv
2, lib
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7, distributed
8, dask
9, grpcio
10, skein
11}:
12
13buildPythonPackage rec {
14 pname = "dask-yarn";
15 version = "0.9";
16
17 src = fetchFromGitHub {
18 owner = "dask";
19 repo = pname;
20 rev = version;
21 hash = "sha256-/BTsxQSiVQrihrCa9DE7pueyg3aPAdjd/Dt4dpUwdtM=";
22 };
23
24 propagatedBuildInputs = [
25 distributed
26 dask
27 grpcio
28 skein
29 ];
30
31 checkInputs = [ pytestCheckHook ];
32 preCheck = ''
33 export HOME=$TMPDIR
34 '';
35 pythonImportsCheck = [ "dask_yarn" ];
36
37 meta = with lib; {
38 broken = stdenv.isDarwin;
39 description = "Deploy dask on YARN clusters";
40 longDescription = ''Dask-Yarn deploys Dask on YARN clusters,
41 such as are found in traditional Hadoop installations.
42 Dask-Yarn provides an easy interface to quickly start,
43 stop, and scale Dask clusters natively from Python.
44 '';
45 homepage = "https://yarn.dask.org/";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ illustris ];
48 };
49}