2017-06-02 15:05:50 +00:00
|
|
|
{ lib
|
2021-04-27 07:38:15 +00:00
|
|
|
, stdenv
|
2019-08-08 21:09:40 +00:00
|
|
|
, bokeh
|
2017-06-02 15:05:50 +00:00
|
|
|
, buildPythonPackage
|
2021-09-01 12:23:18 +00:00
|
|
|
, cloudpickle
|
|
|
|
, distributed
|
2019-12-31 14:48:45 +00:00
|
|
|
, fetchFromGitHub
|
2021-10-31 01:20:51 +00:00
|
|
|
, fetchpatch
|
2019-08-08 21:09:40 +00:00
|
|
|
, fsspec
|
2021-09-01 12:23:18 +00:00
|
|
|
, jinja2
|
2017-06-02 15:05:50 +00:00
|
|
|
, numpy
|
2021-09-01 12:23:18 +00:00
|
|
|
, packaging
|
2017-06-02 15:05:50 +00:00
|
|
|
, pandas
|
|
|
|
, partd
|
2021-09-01 12:23:18 +00:00
|
|
|
, pytest-rerunfailures
|
2021-03-07 19:36:50 +00:00
|
|
|
, pytest-xdist
|
2021-09-01 12:23:18 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, toolz
|
2017-06-02 15:05:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask";
|
2022-03-08 20:34:04 +00:00
|
|
|
version = "2022.02.1";
|
2021-09-01 12:23:18 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-08-09 00:45:34 +00:00
|
|
|
|
2019-12-31 14:48:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-08 20:34:04 +00:00
|
|
|
hash = "sha256-A8ktvfpow/QKAEEt9SUnkTqYFJCrV1mgnuDIP3gdyrE=";
|
2017-06-02 15:05:50 +00:00
|
|
|
};
|
|
|
|
|
2019-08-08 21:09:40 +00:00
|
|
|
propagatedBuildInputs = [
|
2019-12-31 14:48:45 +00:00
|
|
|
cloudpickle
|
|
|
|
fsspec
|
2021-09-01 12:23:18 +00:00
|
|
|
packaging
|
2019-12-31 14:48:45 +00:00
|
|
|
partd
|
2021-09-01 12:23:18 +00:00
|
|
|
pyyaml
|
2019-12-31 14:48:45 +00:00
|
|
|
toolz
|
2021-09-01 12:23:18 +00:00
|
|
|
pandas
|
|
|
|
jinja2
|
|
|
|
bokeh
|
|
|
|
numpy
|
2019-12-31 14:48:45 +00:00
|
|
|
];
|
2017-06-02 15:05:50 +00:00
|
|
|
|
2021-04-23 07:50:38 +00:00
|
|
|
doCheck = true;
|
2021-03-07 19:36:50 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-rerunfailures
|
|
|
|
pytest-xdist
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
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 15:05:50 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-26 17:41:03 +00:00
|
|
|
pytestFlagsArray = [
|
2021-09-01 12:23:18 +00:00
|
|
|
# parallelize
|
2022-01-17 19:43:20 +00:00
|
|
|
"--numprocesses $NIX_BUILD_CORES"
|
2021-09-01 12:23:18 +00:00
|
|
|
# rerun failed tests up to three times
|
|
|
|
"--reruns 3"
|
|
|
|
# don't run tests that require network access
|
2021-04-26 17:41:03 +00:00
|
|
|
"-m 'not network'"
|
|
|
|
];
|
2020-10-04 16:52:44 +00:00
|
|
|
|
2021-04-27 07:38:15 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
2021-04-23 07:50:38 +00:00
|
|
|
# this test requires features of python3Packages.psutil that are
|
|
|
|
# blocked in sandboxed-builds
|
|
|
|
"test_auto_blocksize_csv"
|
2021-06-20 21:50:00 +00:00
|
|
|
] ++ [
|
|
|
|
# A deprecation warning from newer sqlalchemy versions makes these tests
|
|
|
|
# to fail https://github.com/dask/dask/issues/7406
|
|
|
|
"test_sql"
|
|
|
|
# Test interrupt fails intermittently https://github.com/dask/dask/issues/2192
|
|
|
|
"test_interrupt"
|
2020-04-22 06:27:42 +00:00
|
|
|
];
|
2017-06-02 15:05:50 +00:00
|
|
|
|
2021-04-26 17:41:03 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-09-01 12:23:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dask"
|
|
|
|
"dask.array"
|
|
|
|
"dask.bag"
|
|
|
|
"dask.bytes"
|
|
|
|
"dask.dataframe"
|
|
|
|
"dask.dataframe.io"
|
|
|
|
"dask.dataframe.tseries"
|
|
|
|
"dask.diagnostics"
|
|
|
|
];
|
2021-04-23 07:50:38 +00:00
|
|
|
|
2022-02-25 13:04:07 +00:00
|
|
|
passthru.extras-require = {
|
|
|
|
complete = [ distributed ];
|
|
|
|
};
|
|
|
|
|
2021-03-07 15:12:18 +00:00
|
|
|
meta = with lib; {
|
2017-06-02 15:05:50 +00:00
|
|
|
description = "Minimal task scheduling abstraction";
|
2020-09-11 01:24:28 +00: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 15:05:50 +00:00
|
|
|
};
|
|
|
|
}
|