python310Packages.dask: 2023.4.1 -> 2023.7.1
https://docs.dask.org/en/latest/changelog.html#v2023-7-1
This commit is contained in:
@@ -1,46 +1,53 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, arrow-cpp
|
||||
, bokeh
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-syste
|
||||
, setuptools
|
||||
, versioneer
|
||||
|
||||
# dependencies
|
||||
, click
|
||||
, cloudpickle
|
||||
, distributed
|
||||
, fastparquet
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, fsspec
|
||||
, importlib-metadata
|
||||
, jinja2
|
||||
, numpy
|
||||
, packaging
|
||||
, pandas
|
||||
, partd
|
||||
, pyyaml
|
||||
, toolz
|
||||
|
||||
# optional-dependencies
|
||||
, numpy
|
||||
, pyarrow
|
||||
, lz4
|
||||
, pandas
|
||||
, distributed
|
||||
, bokeh
|
||||
, jinja2
|
||||
|
||||
# tests
|
||||
, arrow-cpp
|
||||
, hypothesis
|
||||
, pytest-asyncio
|
||||
, pytest-rerunfailures
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, scipy
|
||||
, setuptools
|
||||
, toolz
|
||||
, versioneer
|
||||
, zarr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dask";
|
||||
version = "2023.4.1";
|
||||
format = "setuptools";
|
||||
version = "2023.7.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dask";
|
||||
repo = pname;
|
||||
repo = "dask";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-PkEFXF6OFZU+EMFBUopv84WniQghr5Q6757Qx6D5MyE=";
|
||||
hash = "sha256-1KnvIMEWT1MwlvkdgH10xk+lGSsGWJMLBonTtWwKjog=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -59,13 +66,18 @@ buildPythonPackage rec {
|
||||
toolz
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
passthru.optional-dependencies = lib.fix (self: {
|
||||
array = [
|
||||
numpy
|
||||
];
|
||||
complete = [
|
||||
distributed
|
||||
];
|
||||
pyarrow
|
||||
lz4
|
||||
]
|
||||
++ self.array
|
||||
++ self.dataframe
|
||||
++ self.distributed
|
||||
++ self.diagnostics;
|
||||
dataframe = [
|
||||
numpy
|
||||
pandas
|
||||
@@ -77,16 +89,16 @@ buildPythonPackage rec {
|
||||
bokeh
|
||||
jinja2
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-rerunfailures
|
||||
pytest-xdist
|
||||
scipy
|
||||
zarr
|
||||
# from panda[test]
|
||||
hypothesis
|
||||
pytest-asyncio
|
||||
] ++ lib.optionals (!arrow-cpp.meta.broken) [ # support is sparse on aarch64
|
||||
fastparquet
|
||||
pyarrow
|
||||
];
|
||||
|
||||
@@ -103,7 +115,7 @@ buildPythonPackage rec {
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --durations=10" "" \
|
||||
--replace " --cov-config=pyproject.toml" "" \
|
||||
--replace " -v" ""
|
||||
--replace "\"-v" "\" "
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
@@ -120,12 +132,10 @@ buildPythonPackage rec {
|
||||
# AttributeError: 'str' object has no attribute 'decode'
|
||||
"test_read_dir_nometa"
|
||||
] ++ [
|
||||
"test_chunksize_files"
|
||||
# TypeError: 'ArrowStringArray' with dtype string does not support reduction 'min'
|
||||
"test_set_index_string"
|
||||
# numpy 1.24
|
||||
# RuntimeWarning: invalid value encountered in cast
|
||||
"test_setitem_extended_API_2d_mask"
|
||||
# AttributeError: 'ArrowStringArray' object has no attribute 'tobytes'. Did you mean: 'nbytes'?
|
||||
"test_dot"
|
||||
"test_dot_nan"
|
||||
"test_merge_column_with_nulls"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
Reference in New Issue
Block a user