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.

40 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=sqlparse
  3. PKG_VERSION:=0.3.0
  4. PKG_RELEASE:=1
  5. PYPI_NAME:=sqlparse
  6. PKG_HASH:=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
  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. VARIANT:=python3
  21. endef
  22. define Package/python3-sqlparse/description
  23. A non-validating SQL parser module. It provides support for parsing, splitting and formatting SQL statements.
  24. endef
  25. define Py3Package/python3-sqlparse/install
  26. $(INSTALL_DIR) $(1)/usr/bin
  27. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR)/sqlparse/__main__.py \
  28. $(1)/usr/bin/sqlformat
  29. endef
  30. $(eval $(call Py3Package,python3-sqlparse))
  31. $(eval $(call BuildPackage,python3-sqlparse))
  32. $(eval $(call BuildPackage,python3-sqlparse-src))