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

72 lines
1.4 KiB
Nix
Raw Normal View History

2017-06-02 15:05:50 +00:00
{ lib
2019-08-08 21:09:40 +00:00
, bokeh
2017-06-02 15:05:50 +00:00
, buildPythonPackage
, fetchFromGitHub
2019-08-08 21:09:40 +00:00
, fsspec
2020-04-22 06:27:42 +00:00
, pytestCheckHook
, pythonOlder
2017-06-02 15:05:50 +00:00
, cloudpickle
, numpy
, toolz
, dill
, pandas
, partd
2020-08-07 20:53:46 +00:00
, pytest_xdist
2017-06-02 15:05:50 +00:00
}:
buildPythonPackage rec {
pname = "dask";
2020-08-07 20:53:46 +00:00
version = "2.22.0";
2017-06-02 15:05:50 +00:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
2020-08-07 20:53:46 +00:00
sha256 = "08nvxj81cz9x92dh2gbmm4imkr8cfljfi2hxkballv2ygwcbzg8g";
2017-06-02 15:05:50 +00:00
};
checkInputs = [
2020-04-22 06:27:42 +00:00
pytestCheckHook
2020-08-07 20:53:46 +00:00
pytest_xdist # takes >10mins to run single-threaded
];
2020-08-07 20:53:46 +00:00
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
2020-04-22 06:27:42 +00:00
dontUseSetuptoolsCheck = true;
2019-08-08 21:09:40 +00:00
propagatedBuildInputs = [
bokeh
cloudpickle
dill
fsspec
numpy
pandas
partd
toolz
];
2017-06-02 15:05:50 +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
'';
2020-04-22 06:27:42 +00:00
disabledTests = [
"test_argwhere_str"
"test_count_nonzero_str"
2020-08-07 20:53:46 +00:00
"rolling_methods" # floating percision error ~0.1*10^8 small
2020-04-22 06:27:42 +00:00
];
2017-06-02 15:05:50 +00:00
meta = {
description = "Minimal task scheduling abstraction";
homepage = "https://github.com/ContinuumIO/dask/";
2017-06-02 15:05:50 +00:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}