python3Packages.dask: 2.9.0 -> 2.9.1 enable tests, use github src

wip/yesman
Chris Ostrouchov 5 years ago committed by Frederik Rietdijk
parent 555037a667
commit 92da996e62
  1. 39
      pkgs/development/python-modules/dask/default.nix

@ -1,7 +1,7 @@
{ lib
, bokeh
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, fsspec
, pytest
, pythonOlder
@ -19,21 +19,40 @@ buildPythonPackage rec {
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "eec200032922b2249f7f1061f8701eaf3e68488cfa78ff2b47c3262f442bede7";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "1xayr4gkp4slvmh2ksdr0d196giz3yhknqjjg1vw2j0la9gwfwxs";
};
checkInputs = [ pytest ];
checkInputs = [
pytest
];
propagatedBuildInputs = [
bokeh cloudpickle dill fsspec numpy pandas partd toolz ];
bokeh
cloudpickle
dill
fsspec
numpy
pandas
partd
toolz
];
checkPhase = ''
py.test dask
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()," ""
'';
# URLError
doCheck = false;
checkPhase = ''
pytest
'';
meta = {
description = "Minimal task scheduling abstraction";

Loading…
Cancel
Save