From 3c7d0449ad0232f18c6c1c0861316e73ebcef0d6 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 17 Sep 2021 16:20:09 -0700 Subject: [PATCH 1/2] python3Packages.aiobotocore: fix build --- pkgs/development/python-modules/aiobotocore/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix index 591fd8c17874..f6024c953fda 100644 --- a/pkgs/development/python-modules/aiobotocore/default.nix +++ b/pkgs/development/python-modules/aiobotocore/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { # relax version constraints: aiobotocore works with newer botocore versions # the pinning used to match some `extras_require` we're not using. postPatch = '' - substituteInPlace setup.py --replace 'botocore>=1.20.49,<1.20.50' 'botocore' + substituteInPlace setup.py --replace 'botocore>=1.20.106,<1.20.107' 'botocore' ''; propagatedBuildInputs = [ wrapt aiohttp aioitertools botocore ]; From b81ef19d94004db513bfb8b63d27c59f971c96f5 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 17 Sep 2021 16:20:28 -0700 Subject: [PATCH 2/2] home-assistant: inherit NIX_BUILD_CORES for test suite "auto" will impurely detect how many threads are available. Running the test suite with 128 threads will also consume about 40GB of ram. --- pkgs/servers/home-assistant/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 9cd83d69eec3..866bbe25a866 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -743,7 +743,7 @@ in with py.pkgs; buildPythonApplication rec { pytestFlagsArray = [ # parallelize test run - "--numprocesses auto" + "--numprocesses $NIX_BUILD_CORES" # assign tests grouped by file to workers "--dist loadfile" # retry racy tests that end in "RuntimeError: Event loop is closed"