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.

39 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=sqlparse
  3. PKG_VERSION:=0.4.1
  4. PKG_RELEASE:=1
  5. PYPI_NAME:=sqlparse
  6. PKG_HASH:=0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8
  7. PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
  8. PKG_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=LICENSE
  10. include ../pypi.mk
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python3-package.mk
  13. define Package/python3-sqlparse
  14. SUBMENU:=Python
  15. SECTION:=lang
  16. CATEGORY:=Languages
  17. TITLE:=Non-validating SQL parser module.
  18. URL:=https://github.com/andialbrecht/sqlparse
  19. DEPENDS:=+python3-light
  20. endef
  21. define Package/python3-sqlparse/description
  22. A non-validating SQL parser module. It provides support for parsing, splitting and formatting SQL statements.
  23. endef
  24. define Py3Package/python3-sqlparse/install
  25. $(INSTALL_DIR) $(1)/usr/bin
  26. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR)/sqlparse/__main__.py \
  27. $(1)/usr/bin/sqlformat
  28. endef
  29. $(eval $(call Py3Package,python3-sqlparse))
  30. $(eval $(call BuildPackage,python3-sqlparse))
  31. $(eval $(call BuildPackage,python3-sqlparse-src))