mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
419bc0a4cd
In87a19e9048
I merged staging-next into master using the GitHub gui as intended. Inac241fb7a5
I merged master into staging-next for the next staging cycle, however, I accidentally pushed it to master. Thinking this may cause trouble, I reverted it in0be87c7979
. This was however wrong, as it "removed" master. This reverts commit0be87c7979
.
64 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|