python3Packages.passlib: specify extras-require
This commit is contained in:
parent
219573548c
commit
99ed27107e
|
@ -49,7 +49,7 @@ buildPythonPackage rec {
|
|||
pytest-asyncio
|
||||
sqlalchemy
|
||||
trio
|
||||
];
|
||||
] ++ passlib.extras-require.bcrypt;
|
||||
|
||||
patches = [
|
||||
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
, passlib
|
||||
|
||||
# tests
|
||||
, argon2_cffi
|
||||
, flask-mongoengine
|
||||
, mongoengine
|
||||
, mongomock
|
||||
|
@ -85,6 +86,7 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
checkInputs = [
|
||||
argon2_cffi
|
||||
flask-mongoengine
|
||||
mongoengine
|
||||
mongomock
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -46,7 +46,7 @@ buildPythonApplication rec {
|
|||
pyramid
|
||||
strictyaml
|
||||
waitress
|
||||
];
|
||||
] ++ passlib.extras-require.argon2;
|
||||
|
||||
checkInputs = [
|
||||
beautifulsoup4
|
||||
|
|
|
@ -20,7 +20,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||
passlib
|
||||
vobject
|
||||
python-dateutil
|
||||
];
|
||||
] ++ passlib.extras-require.bcrypt;
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
|
|
Loading…
Reference in a new issue