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

This commit is contained in:
Chris Ostrouchov 2019-12-31 09:48:45 -05:00 committed by Frederik Rietdijk
parent 555037a667
commit 92da996e62

View File

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