@@ -12,12 +12,14 @@
1212, dill
1313, pandas
1414, partd
15+, pytest-xdist
16+, withExtraComplete ? false
17+, distributed
1518}:
1619
1720buildPythonPackage rec {
1821 pname = "dask";
1922 version = "2021.03.0";
20−
2123 disabled = pythonOlder "3.5";
2224
2325 src = fetchFromGitHub {
@@ -27,13 +29,6 @@ buildPythonPackage rec {
2729 sha256 = "LACv7lWpQULQknNGX/9vH9ckLsypbqKDGnsNBgKT1eI=";
2830 };
2931
30− checkInputs = [
31− pytestCheckHook
32− pytest-rerunfailures
33− ];
34−
35− dontUseSetuptoolsCheck = true;
36−
3732 propagatedBuildInputs = [
3833 bokeh
3934 cloudpickle
@@ -43,8 +38,20 @@ buildPythonPackage rec {
4338 pandas
4439 partd
4540 toolz
41+ ] ++ lib.optionals withExtraComplete [
42+ distributed
4643 ];
4744
45+ doCheck = false;
46+
47+ checkInputs = [
48+ pytestCheckHook
49+ pytest-rerunfailures
50+ pytest-xdist
51+ ];
52+
53+ dontUseSetuptoolsCheck = true;
54+
4855 postPatch = ''
4956 # versioneer hack to set version of github package
5057 echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py
@@ -54,21 +61,18 @@ buildPythonPackage rec {
5461 --replace "cmdclass=versioneer.get_cmdclass()," ""
5562 '';
5663
57− #pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
64+ pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
5865
5966 disabledTests = [
60− "test_argwhere_str"
61− "test_count_nonzero_str"
62− "rolling_methods" # floating percision error ~0.1*10^8 small
63− "num_workers_config" # flaky
64− "test_2args_with_array[pandas1-darray1-ldexp]" # flaky
67+ "test_annotation_pack_unpack"
68+ "test_annotations_blockwise_unpack"
6569 ];
6670
67− meta = {
71+ meta = with lib; {
6872 description = "Minimal task scheduling abstraction";
6973 homepage = "https://dask.org/";
7074 changelog = "https://docs.dask.org/en/latest/changelog.html";
71− license = lib.licenses.bsd3;
72− maintainers = with lib.maintainers; [ fridh ];
75+ license = licenses.bsd3;
76+ maintainers = with maintainers; [ fridh ];
7377 };
7478}