3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dask/default.nix
2020-04-10 17:54:53 +01:00

64 lines
1.2 KiB
Nix

{ lib
, bokeh
, buildPythonPackage
, fetchFromGitHub
, fsspec
, pytest
, pythonOlder
, cloudpickle
, numpy
, toolz
, dill
, pandas
, partd
}:
buildPythonPackage rec {
pname = "dask";
version = "2.10.1";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "035mr7385yf5ng5wf60qxr80529h8dsla5hymkyg68dxhkd0jvbr";
};
checkInputs = [
pytest
];
propagatedBuildInputs = [
bokeh
cloudpickle
dill
fsspec
numpy
pandas
partd
toolz
];
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()," ""
'';
checkPhase = ''
pytest
'';
meta = {
description = "Minimal task scheduling abstraction";
homepage = "https://github.com/ContinuumIO/dask/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}