[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: Add python-sqlparse and python2-sqlparse.
From: |
Ludovic Courtès |
Subject: |
04/07: gnu: Add python-sqlparse and python2-sqlparse. |
Date: |
Wed, 1 Jun 2016 21:41:31 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit 1a024de45e0fe57342d3cec3ba54e129976fd914
Author: Hartmut Goebel <address@hidden>
Date: Sun May 29 19:00:34 2016 +0200
gnu: Add python-sqlparse and python2-sqlparse.
* gnu/packages/python.scm (python-sqlparse, python2-sqlparse):
New variables.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 043c2a5..642fbd6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8853,3 +8853,37 @@ 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.
+ (when (zero? (system* "python3"))
+ (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests"))
+ (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))
- branch master updated (c44fb4d -> 99c866a), Ludovic Courtès, 2016/06/01
- 06/07: doc: Clarify non-interference when installed on a foreign distro., Ludovic Courtès, 2016/06/01
- 02/07: gnu: Add dfu-util., Ludovic Courtès, 2016/06/01
- 03/07: gnu: Add python-tblib and python2-tblib., Ludovic Courtès, 2016/06/01
- 01/07: doc: Suggest pgp.mit.edu., Ludovic Courtès, 2016/06/01
- 07/07: doc: Update specification for Python packages, Ludovic Courtès, 2016/06/01
- 05/07: gnu: Add python2-ipaddr., Ludovic Courtès, 2016/06/01
- 04/07: gnu: Add python-sqlparse and python2-sqlparse.,
Ludovic Courtès <=