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

79 lines
1.6 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
, pytest-rerunfailures
, pythonOlder
2017-06-02 16:05:50 +01:00
, cloudpickle
, numpy
, toolz
, dill
, pandas
, partd
, pytest-xdist
, withExtraComplete ? false
, distributed
2017-06-02 16:05:50 +01:00
}:
buildPythonPackage rec {
pname = "dask";
version = "2021.03.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "LACv7lWpQULQknNGX/9vH9ckLsypbqKDGnsNBgKT1eI=";
2017-06-02 16:05:50 +01:00
};
2019-08-08 22:09:40 +01:00
propagatedBuildInputs = [
bokeh
cloudpickle
dill
fsspec
numpy
pandas
partd
toolz
] ++ lib.optionals withExtraComplete [
distributed
];
2017-06-02 16:05:50 +01:00
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
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_annotation_pack_unpack"
"test_annotations_blockwise_unpack"
2020-04-22 07:27:42 +01:00
];
2017-06-02 16:05:50 +01:00
2021-03-07 15:12:18 +00:00
meta = with lib; {
2017-06-02 16:05:50 +01:00
description = "Minimal task scheduling abstraction";
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 16:05:50 +01:00
};
}