From ab17d96342013d99de1c117ff4c65dd2dfbbbcf7 Mon Sep 17 00:00:00 2001 From: legendofmiracles Date: Fri, 22 Oct 2021 06:59:06 -0600 Subject: [PATCH] python3Packages.argon2_cffi: fix cross-compilation, 20.1.0 -> 21.1.0 --- .../development/python-modules/argon2_cffi/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/argon2_cffi/default.nix b/pkgs/development/python-modules/argon2_cffi/default.nix index eec01adfebca..a40fb806845e 100644 --- a/pkgs/development/python-modules/argon2_cffi/default.nix +++ b/pkgs/development/python-modules/argon2_cffi/default.nix @@ -8,19 +8,25 @@ , fetchPypi , isPy3k , lib +, stdenv }: buildPythonPackage rec { pname = "argon2_cffi"; - version = "20.1.0"; + version = "21.1.0"; src = fetchPypi { pname = "argon2-cffi"; inherit version; - sha256 = "0zgr4mnnm0p4i99023safb0qb8cgvl202nly1rvylk2b7qnrn0nq"; + sha256 = "sha256-9xC2EQPRofaSyj7L0Tc+KKpeVFrGJboGf/L+yhsruHA="; }; propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34; + + propagatedNativeBuildInputs = [ cffi ]; + + ARGON2_CFFI_USE_SSE2 = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) "0"; + checkInputs = [ hypothesis pytest wheel ]; checkPhase = '' pytest tests