guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/12: gnu: python-sqlalchemy: Respect #:tests?.


From: guix-commits
Subject: 06/12: gnu: python-sqlalchemy: Respect #:tests?.
Date: Wed, 3 Nov 2021 13:45:58 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 23489e69f29cf4f2794f4a2180a9aca01567585a
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Nov 3 15:08:18 2021 +0100

    gnu: python-sqlalchemy: Respect #:tests?.
    
    * gnu/packages/databases.scm (python-sqlalchemy)[argument]:
    Respect the #:tests? keyword in the custom 'check phase.
---
 gnu/packages/databases.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 0404f63..e1d639f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2995,7 +2995,9 @@ Database API 2.0T.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _ (invoke "py.test"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "py.test")))))))
     (home-page "https://www.sqlalchemy.org";)
     (synopsis "Database abstraction library")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]