Merge pull request #11164 from commodo/pymysql-opt-crypt

pymysql: make python3-cryptography optional
This commit is contained in:
Hannu Nyman 2020-02-01 09:29:36 +02:00 committed by GitHub
commit 7a7fdbc810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

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

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pymysql
PKG_VERSION:=0.9.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=PyMySQL
PKG_HASH:=d8c059dcd81dedb85a9f034d5e22dcb4442c0b201908bede99e306d65ea7c8e7
@ -18,6 +18,8 @@ PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_CONFIG_DEPENDS:=CONFIG_PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
@ -28,10 +30,14 @@ define Package/python3-pymysql
CATEGORY:=Languages
TITLE:=Pure Python MySQL Client
URL:=https://pymysql.readthedocs.io/
DEPENDS:=+python3 +python3-cryptography
DEPENDS:=+python3 +PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT:python3-cryptography
VARIANT:=python3
endef
define Package/python3-pymysql/config
source "$(SOURCE)/Config.in"
endef
define Package/python3-pymysql/description
This package contains a pure-Python MySQL client library, based on PEP 249.
endef