pymysql: make python3-cryptography optional

According to the installation guide [1], the support for "sha256_password"
or "caching_sha2_password" for authentication is optional.

This change makes it optional for the OpenWrt package by providing a build
option to enable it.
By default it won't be enabled, and packages can choose to enable it.

[1] https://pymysql.readthedocs.io/en/latest/user/installation.html

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
Alexandru Ardelean
2020-01-29 09:25:10 +02:00
parent fd4aa4734e
commit 26f8888d6b
2 changed files with 19 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
menu "Configuration"
depends on PACKAGE_python3-pymysql
config PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT
bool "Enable support for SHA password authentication"
help
To use “sha256_password” or “caching_sha2_password” for authentication
this symbol needs to be enabled, to also install python3-cryptography.
default n
endmenu