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.

64 lines
1.7 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 ../python-package.mk
  18. include ../python3-package.mk
  19. # python-mysqlclient needs iconv
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/python-mysqlclient/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. URL:=https://mysqlclient.readthedocs.io/
  26. endef
  27. define Package/python-mysqlclient
  28. $(call Package/python-mysqlclient/Default)
  29. TITLE:=MySQL database adapter for Python
  30. DEPENDS:=+PACKAGE_python-mysqlclient:python +libmysqlclient
  31. VARIANT:=python
  32. endef
  33. define Package/python3-mysqlclient
  34. $(call Package/python-mysqlclient/Default)
  35. TITLE:=MySQL database adapter for Python3
  36. DEPENDS:=+PACKAGE_python3-mysqlclient:python3 +libmysqlclient
  37. VARIANT:=python3
  38. endef
  39. define Package/python-mysqlclient/description
  40. MySQLdb is an thread-compatible interface to the popular MySQL database
  41. server that provides the Python database API.
  42. endef
  43. define Package/python3-mysqlclient/description
  44. $(call Package/python-mysqlclient/description)
  45. .
  46. (Variant for Python3)
  47. endef
  48. $(eval $(call PyPackage,python-mysqlclient))
  49. $(eval $(call BuildPackage,python-mysqlclient))
  50. $(eval $(call BuildPackage,python-mysqlclient-src))
  51. $(eval $(call Py3Package,python3-mysqlclient))
  52. $(eval $(call BuildPackage,python3-mysqlclient))
  53. $(eval $(call BuildPackage,python3-mysqlclient-src))