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.

41 lines
1.1 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:=2
  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/python3-mysqlclient
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=MySQL database adapter
  25. URL:=https://mysqlclient.readthedocs.io/
  26. DEPENDS:=+python3 +libmysqlclient
  27. endef
  28. define Package/python3-mysqlclient/description
  29. MySQLdb is an thread-compatible interface to the popular MySQL database
  30. server that provides the Python database API.
  31. endef
  32. $(eval $(call Py3Package,python3-mysqlclient))
  33. $(eval $(call BuildPackage,python3-mysqlclient))
  34. $(eval $(call BuildPackage,python3-mysqlclient-src))