package/python-sqlparse: new package
authorAdam Duskett <Aduskett@gmail.com>
Sun, 4 Aug 2019 01:16:25 +0000 (21:16 -0400)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 27 Sep 2019 21:42:14 +0000 (23:42 +0200)
sqlparse is a non-validating SQL parser for Python. It provides support for
parsing, splitting and formatting SQL statements.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-sqlparse/Config.in [new file with mode: 0644]
package/python-sqlparse/python-sqlparse.hash [new file with mode: 0644]
package/python-sqlparse/python-sqlparse.mk [new file with mode: 0644]

index 393b617ca04f8c7572feca3d9ceb6102f1dba267..e572d40d6812c3c101febb3b6d0ac2fe9c254d90 100644 (file)
@@ -60,6 +60,7 @@ F:    package/python-mutagen/
 F:     package/python-pip/
 F:     package/python-psycopg2/
 F:     package/python-sqlalchemy/
+F:     package/python-sqlparse/
 F:     package/python-visitor/
 F:     package/restorecond/
 F:     package/refpolicy/
index 8515eadbd0402e5df5d1ea0524bf4c3c0ce93bb2..69864df434208bfb9b5a751a606b6c86f13bf24f 100644 (file)
@@ -1084,6 +1084,7 @@ menu "External python modules"
        source "package/python-sortedcontainers/Config.in"
        source "package/python-spidev/Config.in"
        source "package/python-sqlalchemy/Config.in"
+       source "package/python-sqlparse/Config.in"
        source "package/python-subprocess32/Config.in"
        source "package/python-systemd/Config.in"
        source "package/python-tabledata/Config.in"
diff --git a/package/python-sqlparse/Config.in b/package/python-sqlparse/Config.in
new file mode 100644 (file)
index 0000000..498b33a
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_SQLPARSE
+       bool "python-sqlparse"
+       help
+         sqlparse is a non-validating SQL parser for Python.
+         It provides support for parsing, splitting and formatting
+         SQL statements.
+
+         https://github.com/andialbrecht/sqlparse
diff --git a/package/python-sqlparse/python-sqlparse.hash b/package/python-sqlparse/python-sqlparse.hash
new file mode 100644 (file)
index 0000000..a03abe3
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/sqlparse/json
+md5    2ce34181d6b7b234c9f3c0ecd1ffb93e  sqlparse-0.3.0.tar.gz
+sha256 7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873  sqlparse-0.3.0.tar.gz
+# Locally computed sha256 checksums
+sha256 c1938235b80d39e93138eae89edc3af67e18ecbc40d266529fa57b2dce426310  LICENSE
diff --git a/package/python-sqlparse/python-sqlparse.mk b/package/python-sqlparse/python-sqlparse.mk
new file mode 100644 (file)
index 0000000..22111df
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-sqlparse
+#
+################################################################################
+
+PYTHON_SQLPARSE_VERSION = 0.3.0
+PYTHON_SQLPARSE_SOURCE = sqlparse-$(PYTHON_SQLPARSE_VERSION).tar.gz
+PYTHON_SQLPARSE_SITE = https://files.pythonhosted.org/packages/63/c8/229dfd2d18663b375975d953e2bdc06d0eed714f93dcb7732f39e349c438
+PYTHON_SQLPARSE_SETUP_TYPE = setuptools
+PYTHON_SQLPARSE_LICENSE = BSD-3-Clause
+PYTHON_SQLPARSE_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))