gnu: tuir: Respect #:tests?.
authorEfraim Flashner <efraim@flashner.co.il>
Wed, 4 Aug 2021 12:15:57 +0000 (15:15 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Wed, 4 Aug 2021 12:15:57 +0000 (15:15 +0300)
* gnu/packages/syndication.scm (tuir)[arguments]: Adjust custom 'check
phase to skip tests when requested.

gnu/packages/syndication.scm

index f3690a1..2f3f191 100644 (file)
@@ -475,9 +475,10 @@ a simple interface that makes it easy to organize and browse feeds.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
              (add-installed-pythonpath inputs outputs)
-             (invoke "pytest"))))))
+             (when tests?
+               (invoke "pytest")))))))
     (inputs
      `(("python-beautifulsoup4" ,python-beautifulsoup4)
        ("python-decorator" ,python-decorator)