python3Packages.argon2_cffi: fix cross-compilation, 20.1.0 -> 21.1.0
This commit is contained in:
parent
e8bb837cda
commit
ab17d96342
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user