Merge pull request #120310 from nbren12/fix-dask-in-sandbox
This commit is contained in:
commit
292b2d389e
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, bokeh
|
, bokeh
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, fetchpatch
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fsspec
|
, fsspec
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
@ -42,7 +43,7 @@ buildPythonPackage rec {
|
|||||||
distributed
|
distributed
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = true;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
@ -52,6 +53,16 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# dask dataframe cannot be imported in sandboxed builds
|
||||||
|
# See https://github.com/dask/dask/pull/7601
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/dask/dask/commit/9ce5b0d258cecb3ef38fd844135ad1f7ac3cea5f.patch";
|
||||||
|
sha256 = "sha256-1EVRYwAdTSEEH9jp+UOnrijzezZN3iYR6q6ieYJM3kY=";
|
||||||
|
name = "fix-dask-dataframe-imports-in-sandbox.patch";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# versioneer hack to set version of github package
|
# 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
|
echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py
|
||||||
@ -66,8 +77,13 @@ buildPythonPackage rec {
|
|||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_annotation_pack_unpack"
|
"test_annotation_pack_unpack"
|
||||||
"test_annotations_blockwise_unpack"
|
"test_annotations_blockwise_unpack"
|
||||||
|
# this test requires features of python3Packages.psutil that are
|
||||||
|
# blocked in sandboxed-builds
|
||||||
|
"test_auto_blocksize_csv"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Minimal task scheduling abstraction";
|
description = "Minimal task scheduling abstraction";
|
||||||
homepage = "https://dask.org/";
|
homepage = "https://dask.org/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user