nixpkgs/pkgs/development/python-modules/dask/default.nix

73 lines
1.5 KiB
Nix
Raw Normal View History

2017-06-02 16:05:50 +01:00
{ lib
2019-08-08 22:09:40 +01:00
, bokeh
2017-06-02 16:05:50 +01:00
, buildPythonPackage
, fetchFromGitHub
2019-08-08 22:09:40 +01:00
, fsspec
2020-04-22 07:27:42 +01:00
, pytestCheckHook
, pythonOlder
2017-06-02 16:05:50 +01:00
, cloudpickle
, numpy
, toolz
, dill
, pandas
, partd
}:
buildPythonPackage rec {
pname = "dask";
version = "2.25.0";
2017-06-02 16:05:50 +01:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "1irp6s577yyjvrvkg00hh1wnl8vrv7pbnbr09mk67z9y7s6xhiw3";
2017-06-02 16:05:50 +01:00
};
checkInputs = [
2020-04-22 07:27:42 +01:00
pytestCheckHook
];
2020-04-22 07:27:42 +01:00
dontUseSetuptoolsCheck = true;
2019-08-08 22:09:40 +01:00
propagatedBuildInputs = [
bokeh
cloudpickle
dill
fsspec
numpy
pandas
partd
toolz
];
2017-06-02 16:05:50 +01: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 16:05:50 +01:00
'';
#pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
2020-04-22 07:27:42 +01:00
disabledTests = [
"test_argwhere_str"
"test_count_nonzero_str"
2020-08-07 21:53:46 +01:00
"rolling_methods" # floating percision error ~0.1*10^8 small
"num_workers_config" # flaky
"test_2args_with_array[pandas1-darray1-ldexp]" # flaky
2020-04-22 07:27:42 +01:00
];
2017-06-02 16:05:50 +01:00
meta = {
description = "Minimal task scheduling abstraction";
homepage = "https://dask.org/";
changelog = "https://docs.dask.org/en/latest/changelog.html";
2017-06-02 16:05:50 +01:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}