From b2635c2b71150ec1ab0e3a591685f653b5db7485 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Tue, 29 Mar 2022 18:14:13 +0000 Subject: [PATCH] python3Packages.tensorflow-datasets: run tests in parallel --- .../development/python-modules/tensorflow-datasets/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/tensorflow-datasets/default.nix b/pkgs/development/python-modules/tensorflow-datasets/default.nix index 98e38bba56a..b97461394d1 100644 --- a/pkgs/development/python-modules/tensorflow-datasets/default.nix +++ b/pkgs/development/python-modules/tensorflow-datasets/default.nix @@ -24,6 +24,7 @@ , protobuf , pycocotools , pydub +, pytest-xdist , pytestCheckHook , requests , scikitimage @@ -88,12 +89,14 @@ buildPythonPackage rec { pillow pycocotools pydub + pytest-xdist pytestCheckHook scikitimage scipy tensorflow tifffile ]; + pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; disabledTestPaths = [ # Sandbox violations: network access, filesystem write attempts outside of build dir, ...