[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse
From: |
Hartmut Goebel |
Subject: |
[PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse |
Date: |
Thu, 21 Apr 2016 21:19:49 +0200 |
* gnu/packages/python.scm (python-sqlparse) (python2-sqlparse):
New variables.
---
gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7cb1dc6..0241ed5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8757,3 +8757,39 @@ multiple processes (imagine multiprocessing, billiard,
futures, celery etc).
(define-public python2-tblib
(package-with-python2 python-tblib))
+
+(define-public python-sqlparse
+ (package
+ (name "python-sqlparse")
+ (version "0.1.19")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "sqlparse" version))
+ (sha256
+ (base32
+ "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* _
+ ;; setup.py-integrated 2to3 only affects the build files, but
+ ;; py.test is using the source files. So we need to convert them
+ ;; manually.
+ (if (zero? (system* "python3"))
+ (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests")
+ #t)
+ (zero? (system* "py.test")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/andialbrecht/sqlparse")
+ (synopsis "Non-validating SQL parser")
+ (description "sqlparse is a non-validating SQL parser for Python. It
+provides support for parsing, splitting and formatting SQL statements.")
+ (license bsd-3)))
+
+(define-public python2-sqlparse
+ (package-with-python2 python-sqlparse))
--
2.7.4
- [PATCH 0/6] Updated: Some new python packages, Hartmut Goebel, 2016/04/21
- [PATCH 4/6] gnu: Add python2-ipaddr, a Python-2-only package, Hartmut Goebel, 2016/04/21
- [PATCH 1/6] gnu: Add python-tblib and python2-tblib, Hartmut Goebel, 2016/04/21
- [PATCH 6/7] gnu: add comment pointing to python-requests-mock in openstack, Hartmut Goebel, 2016/04/21
- [PATCH 5/6] gnu: add python-maxminddb and python2-maxminddb, Hartmut Goebel, 2016/04/21
- [PATCH 6/6] gnu: add python-geoip2 and python2-geoip2, Hartmut Goebel, 2016/04/21