Subject: [PATCH 01/12] gnu: python-alembic: Update to 1.6.5.

From: Pierre Langlois <[email-masked]>
Date: Wed, 21 Jul 2021 14:50:15 +0100

* gnu/packages/databases.scm (python-alembic): Update to 1.6.5.
[arguments]: Honour tests? option in 'check phase.
---
 gnu/packages/databases.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7de85d10c1..d8a70cb873 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -27,7 +27,7 @@
 ;;; Copyright © 2017, 2018 Alex Vong <[email-masked]>
 ;;; Copyright © 2017, 2018 Ben Woodcroft <[email-masked]>
 ;;; Copyright © 2017 Rutger Helling <[email-masked]>
-;;; Copyright © 2017, 2018 Pierre Langlois <[email-masked]>
+;;; Copyright © 2017, 2018, 2021 Pierre Langlois <[email-masked]>
 ;;; Copyright © 2015, 2017, 2018, 2019, 2021 Ricardo Wurmus <[email-masked]>
 ;;; Copyright © 2017 Kristofer Buffington <[email-masked]>
 ;;; Copyright © 2018 Amirouche Boubekki <[email-masked]>
@@ -3088,19 +3088,20 @@ this library provides functions to facilitate such comparisons.")
 (define-public python-alembic
   (package
     (name "python-alembic")
-    (version "1.4.3")
+    (version "1.6.5")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "alembic" version))
        (sha256
-        (base32 "0if2dgb088clk738p26bwk50735h6jpd2kacdgc5capv2hiz6d2k"))))
+        (base32 "0l9sx5g71mgaqp4q84q5fy9p0y4cy0a138aipaxnp3zvngmys7x2"))))
     (build-system python-build-system)
     (arguments
      '(#:phases (modify-phases %standard-phases
                   (replace 'check
-                    (lambda _
-                      (invoke "pytest" "-vv"))))))
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest" "-vv")))))))
     (native-inputs
      `(("python-mock" ,python-mock)
        ("python-pytest-cov" ,python-pytest-cov)))
--
2.32.0