|
|
|
@ -1,9 +1,10 @@ |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, fetchPypi |
|
|
|
|
, nose |
|
|
|
|
, bcrypt |
|
|
|
|
, argon2_cffi |
|
|
|
|
, bcrypt |
|
|
|
|
, cryptography |
|
|
|
|
, pytestCheckHook |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
@ -15,9 +16,17 @@ buildPythonPackage rec { |
|
|
|
|
sha256 = "defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
checkInputs = [ nose ]; |
|
|
|
|
propagatedBuildInputs = [ bcrypt argon2_cffi ]; |
|
|
|
|
propagatedNativeBuildInputs = [ argon2_cffi ]; |
|
|
|
|
passthru.extras-require = { |
|
|
|
|
argon2 = [ argon2_cffi ]; |
|
|
|
|
bcrypt = [ bcrypt ]; |
|
|
|
|
totp = [ cryptography ]; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
pytestCheckHook |
|
|
|
|
] ++ passthru.extras-require.argon2 |
|
|
|
|
++ passthru.extras-require.bcrypt |
|
|
|
|
++ passthru.extras-require.totp; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "A password hashing library for Python"; |
|
|
|
|