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
, 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; {