python3Packages.argon2_cffi: fix cross-compilation, 20.1.0 -> 21.1.0

This commit is contained in:
legendofmiracles 2021-10-22 06:59:06 -06:00 committed by Jonathan Ringer
parent e8bb837cda
commit ab17d96342

View File

@ -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