python3Packages.passlib: specify extras-require
This commit is contained in:
parent
219573548c
commit
99ed27107e
5 changed files with 19 additions and 8 deletions
|
@ -49,7 +49,7 @@ buildPythonPackage rec {
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
trio
|
trio
|
||||||
];
|
] ++ passlib.extras-require.bcrypt;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
|
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
, passlib
|
, passlib
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
|
, argon2_cffi
|
||||||
, flask-mongoengine
|
, flask-mongoengine
|
||||||
, mongoengine
|
, mongoengine
|
||||||
, mongomock
|
, mongomock
|
||||||
|
@ -85,6 +86,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
argon2_cffi
|
||||||
flask-mongoengine
|
flask-mongoengine
|
||||||
mongoengine
|
mongoengine
|
||||||
mongomock
|
mongomock
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, nose
|
|
||||||
, bcrypt
|
|
||||||
, argon2_cffi
|
, argon2_cffi
|
||||||
|
, bcrypt
|
||||||
|
, cryptography
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -15,9 +16,17 @@ buildPythonPackage rec {
|
||||||
sha256 = "defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04";
|
sha256 = "defd50f72b65c5402ab2c573830a6978e5f202ad0d984793c8dde2c4152ebe04";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
passthru.extras-require = {
|
||||||
propagatedBuildInputs = [ bcrypt argon2_cffi ];
|
argon2 = [ argon2_cffi ];
|
||||||
propagatedNativeBuildInputs = [ argon2_cffi ];
|
bcrypt = [ bcrypt ];
|
||||||
|
totp = [ cryptography ];
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
] ++ passthru.extras-require.argon2
|
||||||
|
++ passthru.extras-require.bcrypt
|
||||||
|
++ passthru.extras-require.totp;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A password hashing library for Python";
|
description = "A password hashing library for Python";
|
||||||
|
|
|
@ -46,7 +46,7 @@ buildPythonApplication rec {
|
||||||
pyramid
|
pyramid
|
||||||
strictyaml
|
strictyaml
|
||||||
waitress
|
waitress
|
||||||
];
|
] ++ passlib.extras-require.argon2;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
|
|
@ -20,7 +20,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
passlib
|
passlib
|
||||||
vobject
|
vobject
|
||||||
python-dateutil
|
python-dateutil
|
||||||
];
|
] ++ passlib.extras-require.bcrypt;
|
||||||
|
|
||||||
checkInputs = with python3.pkgs; [
|
checkInputs = with python3.pkgs; [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
|
Loading…
Reference in a new issue