From 3131a1c8dd43008bd69dd1eabe3792405c71a4ac Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Thu, 19 Dec 2024 23:09:34 -0800 Subject: [PATCH] python313Packages.twisted: enable tls for aarch64-darwin in checkPhase twisted tests fail on aarch64-darwin due to the optional dependency tls missing from the nativeCheckInputs and the tests not loading various required modules. The tls (pyopenssl) module was disabled due to memory errors in 2022 ddcb3f9ff4fb7e0419cc665c27b351759a0300ac which seem to be fixed. after enabling tls the tests succeed https://hydra.nixos.org/build/282344425 --- pkgs/development/python-modules/twisted/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index c54791543489..ad39d4e897ab 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -199,10 +199,7 @@ buildPythonPackage rec { ++ optional-dependencies.conch ++ optional-dependencies.http2 ++ optional-dependencies.serial - # not supported on aarch64-darwin: https://github.com/pyca/pyopenssl/issues/873 - ++ lib.optionals ( - !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) - ) optional-dependencies.tls; + ++ optional-dependencies.tls; preCheck = '' export SOURCE_DATE_EPOCH=315532800