2017-06-02 16:05:50 +01:00
|
|
|
{ lib
|
2019-08-08 22:09:40 +01:00
|
|
|
, bokeh
|
2017-06-02 16:05:50 +01:00
|
|
|
, buildPythonPackage
|
2021-04-23 08:50:38 +01:00
|
|
|
, fetchpatch
|
2019-12-31 14:48:45 +00:00
|
|
|
, fetchFromGitHub
|
2019-08-08 22:09:40 +01:00
|
|
|
, fsspec
|
2020-04-22 07:27:42 +01:00
|
|
|
, pytestCheckHook
|
2021-03-06 15:44:03 +00:00
|
|
|
, pytest-rerunfailures
|
2019-08-09 01:45:34 +01:00
|
|
|
, pythonOlder
|
2017-06-02 16:05:50 +01:00
|
|
|
, cloudpickle
|
|
|
|
, numpy
|
|
|
|
, toolz
|
|
|
|
, dill
|
|
|
|
, pandas
|
|
|
|
, partd
|
2021-03-07 19:36:50 +00:00
|
|
|
, pytest-xdist
|
|
|
|
, withExtraComplete ? false
|
|
|
|
, distributed
|
2017-06-02 16:05:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask";
|
2021-03-06 15:44:03 +00:00
|
|
|
version = "2021.03.0";
|
2019-08-09 01:45:34 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2019-12-31 14:48:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-06 15:44:03 +00:00
|
|
|
sha256 = "LACv7lWpQULQknNGX/9vH9ckLsypbqKDGnsNBgKT1eI=";
|
2017-06-02 16:05:50 +01:00
|
|
|
};
|
|
|
|
|
2019-08-08 22:09:40 +01:00
|
|
|
propagatedBuildInputs = [
|
2019-12-31 14:48:45 +00:00
|
|
|
bokeh
|
|
|
|
cloudpickle
|
|
|
|
dill
|
|
|
|
fsspec
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
partd
|
|
|
|
toolz
|
2021-03-07 19:36:50 +00:00
|
|
|
] ++ lib.optionals withExtraComplete [
|
|
|
|
distributed
|
2019-12-31 14:48:45 +00:00
|
|
|
];
|
2017-06-02 16:05:50 +01:00
|
|
|
|
2021-04-23 08:50:38 +01:00
|
|
|
doCheck = true;
|
2021-03-07 19:36:50 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-rerunfailures
|
|
|
|
pytest-xdist
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2021-04-23 08:50:38 +01:00
|
|
|
patches = [
|
|
|
|
# dask dataframe cannot be imported in sandboxed builds
|
|
|
|
# See https://github.com/dask/dask/pull/7601
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/dask/dask/commit/9ce5b0d258cecb3ef38fd844135ad1f7ac3cea5f.patch";
|
|
|
|
sha256 = "sha256-1EVRYwAdTSEEH9jp+UOnrijzezZN3iYR6q6ieYJM3kY=";
|
|
|
|
name = "fix-dask-dataframe-imports-in-sandbox.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-12-31 14:48:45 +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()," ""
|
2017-06-02 16:05:50 +01:00
|
|
|
'';
|
|
|
|
|
2021-04-26 18:41:03 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-n $NIX_BUILD_CORES"
|
|
|
|
"-m 'not network'"
|
|
|
|
];
|
2020-10-04 17:52:44 +01:00
|
|
|
|
2020-04-22 07:27:42 +01:00
|
|
|
disabledTests = [
|
2021-03-07 19:36:50 +00:00
|
|
|
"test_annotation_pack_unpack"
|
|
|
|
"test_annotations_blockwise_unpack"
|
2021-04-23 08:50:38 +01:00
|
|
|
# this test requires features of python3Packages.psutil that are
|
|
|
|
# blocked in sandboxed-builds
|
|
|
|
"test_auto_blocksize_csv"
|
2020-04-22 07:27:42 +01:00
|
|
|
];
|
2017-06-02 16:05:50 +01:00
|
|
|
|
2021-04-26 18:41:03 +01:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-04-23 08:50:38 +01:00
|
|
|
pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ];
|
|
|
|
|
2021-03-07 15:12:18 +00:00
|
|
|
meta = with lib; {
|
2017-06-02 16:05:50 +01:00
|
|
|
description = "Minimal task scheduling abstraction";
|
2020-09-11 02:24:28 +01:00
|
|
|
homepage = "https://dask.org/";
|
|
|
|
changelog = "https://docs.dask.org/en/latest/changelog.html";
|
2021-03-07 15:12:18 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2017-06-02 16:05:50 +01:00
|
|
|
};
|
|
|
|
}
|