2017-06-02 17:05:50 +02:00
|
|
|
{ lib
|
2019-08-08 23:09:40 +02:00
|
|
|
, bokeh
|
2017-06-02 17:05:50 +02:00
|
|
|
, buildPythonPackage
|
2019-12-31 15:48:45 +01:00
|
|
|
, fetchFromGitHub
|
2019-08-08 23:09:40 +02:00
|
|
|
, fsspec
|
2020-04-22 08:27:42 +02:00
|
|
|
, pytestCheckHook
|
2019-08-09 02:45:34 +02:00
|
|
|
, pythonOlder
|
2017-06-02 17:05:50 +02:00
|
|
|
, cloudpickle
|
|
|
|
, numpy
|
|
|
|
, toolz
|
|
|
|
, dill
|
|
|
|
, pandas
|
|
|
|
, partd
|
2020-08-07 22:53:46 +02:00
|
|
|
, pytest_xdist
|
2017-06-02 17:05:50 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask";
|
2020-09-11 03:24:28 +02:00
|
|
|
version = "2.25.0";
|
2017-06-02 17:05:50 +02:00
|
|
|
|
2019-08-09 02:45:34 +02:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2019-12-31 15:48:45 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-11 03:24:28 +02:00
|
|
|
sha256 = "1irp6s577yyjvrvkg00hh1wnl8vrv7pbnbr09mk67z9y7s6xhiw3";
|
2017-06-02 17:05:50 +02:00
|
|
|
};
|
|
|
|
|
2019-12-31 15:48:45 +01:00
|
|
|
checkInputs = [
|
2020-04-22 08:27:42 +02:00
|
|
|
pytestCheckHook
|
2020-08-07 22:53:46 +02:00
|
|
|
pytest_xdist # takes >10mins to run single-threaded
|
2019-12-31 15:48:45 +01:00
|
|
|
];
|
|
|
|
|
2020-04-22 08:27:42 +02:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2019-08-08 23:09:40 +02:00
|
|
|
propagatedBuildInputs = [
|
2019-12-31 15:48:45 +01:00
|
|
|
bokeh
|
|
|
|
cloudpickle
|
|
|
|
dill
|
|
|
|
fsspec
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
partd
|
|
|
|
toolz
|
|
|
|
];
|
2017-06-02 17:05:50 +02:00
|
|
|
|
2019-12-31 15:48:45 +01: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()," ""
|
2017-06-02 17:05:50 +02:00
|
|
|
'';
|
|
|
|
|
2020-10-04 18:52:44 +02:00
|
|
|
# dask test suite with consistently fail when using high core counts
|
|
|
|
preCheck = ''
|
|
|
|
NIX_BUILD_CORES=$((NIX_BUILD_CORES > 8 ? 8 : NIX_BUILD_CORES))
|
|
|
|
'';
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
|
|
|
|
|
2020-04-22 08:27:42 +02:00
|
|
|
disabledTests = [
|
|
|
|
"test_argwhere_str"
|
|
|
|
"test_count_nonzero_str"
|
2020-08-07 22:53:46 +02:00
|
|
|
"rolling_methods" # floating percision error ~0.1*10^8 small
|
2020-08-16 20:40:51 +02:00
|
|
|
"num_workers_config" # flaky
|
2020-04-22 08:27:42 +02:00
|
|
|
];
|
2017-06-02 17:05:50 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Minimal task scheduling abstraction";
|
2020-09-11 03:24:28 +02:00
|
|
|
homepage = "https://dask.org/";
|
|
|
|
changelog = "https://docs.dask.org/en/latest/changelog.html";
|
2017-06-02 17:05:50 +02:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|