From a2d5dc2c46558c8890d61294a0bb3116a99a2191 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Sat, 22 Oct 2022 18:32:19 +0400 Subject: [PATCH] pythonPackages.passlib: disable native support test on darwin (#197077) Several instances of this test fail with error like: AssertionError: did not expect 'darwin' platform would have native support for '...' It looks like passlib's tests erroneously assume that some methods should not have support on Darwin while current nixpkgs does support it through libxcrypt. --- pkgs/development/python-modules/passlib/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/passlib/default.nix b/pkgs/development/python-modules/passlib/default.nix index 0ced7c057545..72892a109539 100644 --- a/pkgs/development/python-modules/passlib/default.nix +++ b/pkgs/development/python-modules/passlib/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchPypi , argon2-cffi @@ -25,12 +26,16 @@ buildPythonPackage rec { checkInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.argon2 - ++ passthru.optional-dependencies.bcrypt - ++ passthru.optional-dependencies.totp; + ++ passthru.optional-dependencies.bcrypt + ++ passthru.optional-dependencies.totp; disabledTests = [ # timming sensitive "test_dummy_verify" + ] + # These tests fail because they don't expect support for algorithms provided through libxcrypt + ++ lib.optionals stdenv.isDarwin [ + "test_82_crypt_support" ]; meta = with lib; {