gnu: python-sqlparse: Update to 0.2.4.

* gnu/packages/python.scm (python-sqlparse, python2-sqlparse): Update to
0.2.4.
[arguments]: Don't invoke ‘2to3’.
This commit is contained in:
Tobias Geerinckx-Rice 2017-11-10 20:13:46 +01:00
parent 795ec760e4
commit 8d688cd27f
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 3 additions and 9 deletions

View File

@ -11761,24 +11761,18 @@ multiple processes (imagine multiprocessing, billiard, futures, celery etc).
(define-public python-sqlparse (define-public python-sqlparse
(package (package
(name "python-sqlparse") (name "python-sqlparse")
(version "0.1.19") (version "0.2.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "sqlparse" version)) (uri (pypi-uri "sqlparse" version))
(sha256 (sha256
(base32 (base32
"1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq")))) "1v3xh0bkfhb262dbndgzhivpnhdwavdzz8jjhx9vx0xbrx2880nf"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (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"))))))) (zero? (system* "py.test")))))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest))) `(("python-pytest" ,python-pytest)))