3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.passlib: specify extras-require

This commit is contained in:
Robert Schütz 2022-05-03 04:23:51 +00:00
parent 219573548c
commit 99ed27107e
5 changed files with 19 additions and 8 deletions

View file

@ -49,7 +49,7 @@ buildPythonPackage rec {
pytest-asyncio
sqlalchemy
trio
];
] ++ passlib.extras-require.bcrypt;
patches = [
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483

View file

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

View file

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

View file

@ -46,7 +46,7 @@ buildPythonApplication rec {
pyramid
strictyaml
waitress
];
] ++ passlib.extras-require.argon2;
checkInputs = [
beautifulsoup4

View file

@ -20,7 +20,7 @@ python3.pkgs.buildPythonApplication rec {
passlib
vobject
python-dateutil
];
] ++ passlib.extras-require.bcrypt;
checkInputs = with python3.pkgs; [
pytestCheckHook