pythonPackages.dask: add optional extra "complete"

This commit is contained in:
Sandro Jäckel 2021-03-07 20:36:50 +01:00
parent c34a2136cf
commit 83f2ece678
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -12,6 +12,9 @@
, dill , dill
, pandas , pandas
, partd , partd
, pytest-xdist
, withExtraComplete ? false
, distributed
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -26,13 +29,6 @@ buildPythonPackage rec {
sha256 = "LACv7lWpQULQknNGX/9vH9ckLsypbqKDGnsNBgKT1eI="; sha256 = "LACv7lWpQULQknNGX/9vH9ckLsypbqKDGnsNBgKT1eI=";
}; };
checkInputs = [
pytestCheckHook
pytest-rerunfailures
];
dontUseSetuptoolsCheck = true;
propagatedBuildInputs = [ propagatedBuildInputs = [
bokeh bokeh
cloudpickle cloudpickle
@ -42,8 +38,20 @@ buildPythonPackage rec {
pandas pandas
partd partd
toolz toolz
] ++ lib.optionals withExtraComplete [
distributed
]; ];
doCheck = false;
checkInputs = [
pytestCheckHook
pytest-rerunfailures
pytest-xdist
];
dontUseSetuptoolsCheck = true;
postPatch = '' postPatch = ''
# versioneer hack to set version of github package # 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 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()," "" --replace "cmdclass=versioneer.get_cmdclass()," ""
''; '';
#pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
disabledTests = [ disabledTests = [
"test_argwhere_str" "test_annotation_pack_unpack"
"test_count_nonzero_str" "test_annotations_blockwise_unpack"
"rolling_methods" # floating percision error ~0.1*10^8 small
"num_workers_config" # flaky
"test_2args_with_array[pandas1-darray1-ldexp]" # flaky
]; ];
meta = with lib; { meta = with lib; {