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

64 lines
1.2 KiB
Nix
Raw Normal View History

2017-06-02 17:05:50 +02:00
{ lib
2019-08-08 23:09:40 +02:00
, bokeh
2017-06-02 17:05:50 +02:00
, buildPythonPackage
, fetchFromGitHub
2019-08-08 23:09:40 +02:00
, fsspec
2017-06-02 17:05:50 +02:00
, pytest
, pythonOlder
2017-06-02 17:05:50 +02:00
, cloudpickle
, numpy
, toolz
, dill
, pandas
, partd
}:
buildPythonPackage rec {
pname = "dask";
2019-12-29 10:28:06 +01:00
version = "2.9.1";
2017-06-02 17:05:50 +02:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "1xayr4gkp4slvmh2ksdr0d196giz3yhknqjjg1vw2j0la9gwfwxs";
2017-06-02 17:05:50 +02:00
};
checkInputs = [
pytest
];
2019-08-08 23:09:40 +02:00
propagatedBuildInputs = [
bokeh
cloudpickle
dill
fsspec
numpy
pandas
partd
toolz
];
2017-06-02 17:05:50 +02: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 17:05:50 +02:00
'';
checkPhase = ''
pytest
'';
2017-06-02 17:05:50 +02:00
meta = {
description = "Minimal task scheduling abstraction";
homepage = https://github.com/ContinuumIO/dask/;
2017-06-02 17:05:50 +02:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}