nixpkgs/pkgs
Noah D. Brenowitz ceeaf2d066 python3Packages.dask: fix sandboxed builds
Importing dask.dataframe in a sandboxed build results in a TypeError like
this:

  File "/nix/store/nv60iri29bia4szhhcvsdxgsci4wxvp6-python3.8-dask-2021.03.0/lib/python3.8/site-packages/dask/dataframe/io/csv.py", line 392, in <module>
    AUTO_BLOCKSIZE = auto_blocksize(TOTAL_MEM, CPU_COUNT)
  File "/nix/store/nv60iri29bia4szhhcvsdxgsci4wxvp6-python3.8-dask-2021.03.0/lib/python3.8/site-packages/dask/dataframe/io/csv.py", line 382, in auto_blocksize
    blocksize = int(total_memory // cpu_count / memory_factor)
  TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'

This occurs because dask.dataframe has a non-deterministic component which
generates an automatic chunk-size based on system information.

This went unnoticed because the dask tests were disabled.

Changes:
- add a patch making the chunk-size inference more robust
- re-enable the tests

Resolves #120307
2021-04-23 17:57:01 -07:00
..
applications Merge pull request #120243 from doronbehar/pkg/zoom-us 2021-04-23 06:03:12 +01:00
build-support Merge pull request #114400 from mkg20001/fhs-etc-nix 2021-04-19 14:34:47 +02:00
common-updater
data Merge pull request #114436 from gvolpe/icon-theme/beauty-line 2021-04-22 23:44:19 +02:00
desktops cinnamon.nemo: 4.8.4 -> 4.8.6 2021-04-23 00:05:09 +03:00
development python3Packages.dask: fix sandboxed builds 2021-04-23 17:57:01 -07:00
games Merge pull request #120232 from IvarWithoutBones/bump/minecraft-launcher 2021-04-22 14:03:56 -07:00
misc vimPlugins.vim-strip-trailing-whitespace: init at 2021-01-03 2021-04-22 23:11:52 +02:00
os-specific usbip: fix listing functionality (#120267) 2021-04-23 01:13:28 +02:00
pkgs-lib
servers Merge pull request #120281 from mweinelt/home-assistant 2021-04-23 05:57:05 +01:00
shells fishPlugins.done: init at 1.16.1 2021-04-21 10:04:32 -07:00
stdenv Merge pull request #120080 from Radvendii/cc-wrapper-lib 2021-04-22 01:05:22 -04:00
test tests.vim: init (moved from vim-utils.nix) (#119467) 2021-04-21 12:55:05 +02:00
tools yarGen: don't depend on scandir 2021-04-22 23:32:02 -07:00
top-level dcs: init at unstable-2021-04-07 2021-04-22 23:07:38 -07:00