Browse Source

Merge pull request #10375 from peter-stadler/sqlparse

sqlparse: add python3 package
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
e1af55fdf5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions
  1. +40
    -0
      lang/python/python3-sqlparse/Makefile

+ 40
- 0
lang/python/python3-sqlparse/Makefile View File

@ -0,0 +1,40 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=sqlparse
PKG_VERSION:=0.3.0
PKG_RELEASE:=1
PYPI_NAME:=sqlparse
PKG_HASH:=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-sqlparse
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Non-validating SQL parser module.
URL:=https://github.com/andialbrecht/sqlparse
DEPENDS:=+python3-light
VARIANT:=python3
endef
define Package/python3-sqlparse/description
A non-validating SQL parser module. It provides support for parsing, splitting and formatting SQL statements.
endef
define Py3Package/python3-sqlparse/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR)/sqlparse/__main__.py \
$(1)/usr/bin/sqlformat
endef
$(eval $(call Py3Package,python3-sqlparse))
$(eval $(call BuildPackage,python3-sqlparse))
$(eval $(call BuildPackage,python3-sqlparse-src))

Loading…
Cancel
Save