mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sqlparse: Update to 0.5.3.
* gnu/packages/databases.scm (python-sqlparse): Update to 0.5.3. [build-system]: Use pyproejct. [arguments]: Drop all of them. [inputs]: Remove bash-minimal. [native-inputs]: Add python-hatchling. Change-Id: Id30334d7e033a8786011a819042ab0d6cb221296
This commit is contained in:
parent
65b71b968b
commit
41a5955408
1 changed files with 11 additions and 30 deletions
|
@ -5071,36 +5071,17 @@ is designed to have a low barrier to entry.")
|
||||||
(define-public python-sqlparse
|
(define-public python-sqlparse
|
||||||
(package
|
(package
|
||||||
(name "python-sqlparse")
|
(name "python-sqlparse")
|
||||||
(version "0.4.3")
|
(version "0.5.3")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (pypi-uri "sqlparse" version))
|
(method url-fetch)
|
||||||
(sha256
|
(uri (pypi-uri "sqlparse" version))
|
||||||
(base32
|
(sha256
|
||||||
"0s3jyllg0ka0n7pgqfng1hzvh39li853dr40qcp4s4dv8r481jk9"))))
|
(base32 "0wljxh3lh2zndy7amziwd3572cwwbmzzq6yyvgn1c2vayn3pgxh9"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(native-inputs
|
||||||
`(#:phases
|
(list python-pytest
|
||||||
(modify-phases %standard-phases
|
python-hatchling))
|
||||||
(replace 'check
|
|
||||||
(lambda _
|
|
||||||
(invoke "py.test")))
|
|
||||||
;; XXX: The regular wrap phase ends up storing pytest as a runtime
|
|
||||||
;; dependency. See <https://bugs.gnu.org/25235>.
|
|
||||||
(replace 'wrap
|
|
||||||
(lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
|
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(python (assoc-ref (or native-inputs inputs) "python"))
|
|
||||||
(sitedir (string-append "/lib/python"
|
|
||||||
(python-version python)
|
|
||||||
"/site-packages")))
|
|
||||||
(wrap-program (string-append out "/bin/sqlformat")
|
|
||||||
`("PYTHONPATH" ":" prefix
|
|
||||||
,(map (lambda (output)
|
|
||||||
(string-append output sitedir))
|
|
||||||
(list python out))))))))))
|
|
||||||
(native-inputs (list python-pytest))
|
|
||||||
(inputs (list bash-minimal))
|
|
||||||
(home-page "https://github.com/andialbrecht/sqlparse")
|
(home-page "https://github.com/andialbrecht/sqlparse")
|
||||||
(synopsis "Non-validating SQL parser")
|
(synopsis "Non-validating SQL parser")
|
||||||
(description "Sqlparse is a non-validating SQL parser for Python. It
|
(description "Sqlparse is a non-validating SQL parser for Python. It
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue