2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-05-20 23:08:51 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, bokeh
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
2020-05-15 21:57:56 +00:00
|
|
|
, pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-rerunfailures
|
2020-04-24 23:36:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, cloudpickle
|
|
|
|
, numpy
|
|
|
|
, toolz
|
|
|
|
, dill
|
|
|
|
, pandas
|
|
|
|
, partd
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-xdist
|
|
|
|
, withExtraComplete ? false
|
|
|
|
, distributed
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2021.06.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-wrUqLSmlKhd0NSjWBwbow8aX53ZBTgl2n4lEmvxC3bs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bokeh
|
|
|
|
cloudpickle
|
|
|
|
dill
|
|
|
|
fsspec
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
partd
|
|
|
|
toolz
|
2021-03-09 03:18:52 +00:00
|
|
|
] ++ lib.optionals withExtraComplete [
|
|
|
|
distributed
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
doCheck = true;
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-rerunfailures
|
|
|
|
pytest-xdist
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
# versioneer hack to set version of github package
|
|
|
|
echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py
|
|
|
|
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "version=versioneer.get_version()," "version='${version}'," \
|
|
|
|
--replace "cmdclass=versioneer.get_cmdclass()," ""
|
|
|
|
'';
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-n $NIX_BUILD_CORES"
|
|
|
|
"-m 'not network'"
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
2021-04-25 03:57:28 +00:00
|
|
|
# this test requires features of python3Packages.psutil that are
|
|
|
|
# blocked in sandboxed-builds
|
|
|
|
"test_auto_blocksize_csv"
|
2021-06-28 23:13:55 +00:00
|
|
|
] ++ [
|
|
|
|
# A deprecation warning from newer sqlalchemy versions makes these tests
|
|
|
|
# to fail https://github.com/dask/dask/issues/7406
|
|
|
|
"test_sql"
|
|
|
|
# Test interrupt fails intermittently https://github.com/dask/dask/issues/2192
|
|
|
|
"test_interrupt"
|
2020-05-15 21:57:56 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Minimal task scheduling abstraction";
|
2020-10-27 00:29:36 +00:00
|
|
|
homepage = "https://dask.org/";
|
|
|
|
changelog = "https://docs.dask.org/en/latest/changelog.html";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|