You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-mysqlclient
  9. PKG_VERSION:=1.4.6
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PYPI_NAME:=mysqlclient
  13. PKG_HASH:=f3fdaa9a38752a3b214a6fe79d7cae3653731a53e577821f9187e67cbecb2e16
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python3-package.mk
  18. # python-mysqlclient needs iconv
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/python-mysqlclient/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. URL:=https://mysqlclient.readthedocs.io/
  25. endef
  26. define Package/python3-mysqlclient
  27. $(call Package/python-mysqlclient/Default)
  28. TITLE:=MySQL database adapter for Python3
  29. DEPENDS:=+PACKAGE_python3-mysqlclient:python3 +libmysqlclient
  30. VARIANT:=python3
  31. endef
  32. define Package/python3-mysqlclient/description
  33. MySQLdb is an thread-compatible interface to the popular MySQL database
  34. server that provides the Python database API.
  35. .
  36. (Variant for Python3)
  37. endef
  38. $(eval $(call Py3Package,python3-mysqlclient))
  39. $(eval $(call BuildPackage,python3-mysqlclient))
  40. $(eval $(call BuildPackage,python3-mysqlclient-src))