From 83f2ece67831732f223dcce221e720707dc78555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 7 Mar 2021 20:36:50 +0100 Subject: [PATCH] pythonPackages.dask: add optional extra "complete" --- .../python-modules/dask/default.nix | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix index adebed355e95..8f3e4d08583b 100644 --- a/pkgs/development/python-modules/dask/default.nix +++ b/pkgs/development/python-modules/dask/default.nix @@ -12,6 +12,9 @@ , dill , pandas , partd +, pytest-xdist +, withExtraComplete ? false +, distributed }: buildPythonPackage rec { @@ -26,13 +29,6 @@ buildPythonPackage rec { sha256 = "LACv7lWpQULQknNGX/9vH9ckLsypbqKDGnsNBgKT1eI="; }; - checkInputs = [ - pytestCheckHook - pytest-rerunfailures - ]; - - dontUseSetuptoolsCheck = true; - propagatedBuildInputs = [ bokeh cloudpickle @@ -42,8 +38,20 @@ buildPythonPackage rec { pandas partd toolz + ] ++ lib.optionals withExtraComplete [ + distributed ]; + doCheck = false; + + checkInputs = [ + pytestCheckHook + pytest-rerunfailures + pytest-xdist + ]; + + dontUseSetuptoolsCheck = true; + 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 @@ -53,14 +61,11 @@ buildPythonPackage rec { --replace "cmdclass=versioneer.get_cmdclass()," "" ''; - #pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; + pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; disabledTests = [ - "test_argwhere_str" - "test_count_nonzero_str" - "rolling_methods" # floating percision error ~0.1*10^8 small - "num_workers_config" # flaky - "test_2args_with_array[pandas1-darray1-ldexp]" # flaky + "test_annotation_pack_unpack" + "test_annotations_blockwise_unpack" ]; meta = with lib; {