nixpkgs/pkgs/development/python-modules/dask-yarn/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

70 lines
1.3 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, dask
, distributed
, fetchFromGitHub
, grpcio
, pytestCheckHook
, pythonOlder
, skein
}:
buildPythonPackage rec {
pname = "dask-yarn";
version = "0.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
hash = "sha256-/BTsxQSiVQrihrCa9DE7pueyg3aPAdjd/Dt4dpUwdtM=";
};
propagatedBuildInputs = [
distributed
dask
grpcio
skein
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [
"dask_yarn"
];
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"
];
meta = with lib; {
description = "Deploy dask on YARN clusters";
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.
'';
homepage = "https://yarn.dask.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ illustris ];
broken = stdenv.isDarwin;
};
}