[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/14: gnu: python-sqlparse: Remove unnecessary runtime dependencies.
From: |
guix-commits |
Subject: |
08/14: gnu: python-sqlparse: Remove unnecessary runtime dependencies. |
Date: |
Wed, 5 May 2021 17:49:31 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 151f1720e3400e2b1463917f8e0917eef9904dca
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed May 5 21:19:27 2021 +0200
gnu: python-sqlparse: Remove unnecessary runtime dependencies.
* gnu/packages/databases.scm (python-sqlparse)[arguments]: Override 'wrap'
phase.
---
gnu/packages/databases.scm | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index dd7f510..2777293 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -17,7 +17,7 @@
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke
<marius@gnu.org>
;;; Copyright © 2017, 2018 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2017, 2020 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
@@ -3520,7 +3520,22 @@ is designed to have a low barrier to entry.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _ (invoke "py.test"))))))
+ (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
`(("python-pytest" ,python-pytest)))
(home-page "https://github.com/andialbrecht/sqlparse")
- branch master updated (1ca0a9a -> 2bb74d8), guix-commits, 2021/05/05
- 01/14: gnu: uBlock Origin: Update to 1.35.2., guix-commits, 2021/05/05
- 04/14: gnu: python-bcrypt: Update to 3.2.0., guix-commits, 2021/05/05
- 05/14: gnu: python-asgiref: Update to 3.3.4., guix-commits, 2021/05/05
- 06/14: gnu: python-netaddr: Update to 0.8.0., guix-commits, 2021/05/05
- 02/14: gnu: python-sqlparse: Update to 0.4.1., guix-commits, 2021/05/05
- 03/14: gnu: python-django-auth-ldap: Update to 2.4.0., guix-commits, 2021/05/05
- 07/14: gnu: python-cached-property: Update to 1.5.2., guix-commits, 2021/05/05
- 08/14: gnu: python-sqlparse: Remove unnecessary runtime dependencies.,
guix-commits <=
- 09/14: gnu: python-django-debug-toolbar: Update to 3.2.1., guix-commits, 2021/05/05
- 10/14: gnu: python-django-picklefield: Test with Django 2.2., guix-commits, 2021/05/05
- 11/14: gnu: python-djangorestframework: Update to 3.12.4., guix-commits, 2021/05/05
- 12/14: gnu: python-django: Support '--without-tests'., guix-commits, 2021/05/05
- 14/14: gnu: python-django: Disable django-admin wrapper., guix-commits, 2021/05/05
- 13/14: gnu: python-django: Update to 3.2.1., guix-commits, 2021/05/05