gnu: python-slugify: Honor #:tests?.
authorLudovic Courtès <ludo@gnu.org>
Thu, 28 Oct 2021 19:02:57 +0000 (21:02 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 28 Oct 2021 19:30:28 +0000 (21:30 +0200)
* gnu/packages/python-web.scm (python-slugify)[arguments]: Honor #:tests?

gnu/packages/python-web.scm

index fcca869..62de043 100644 (file)
@@ -4594,8 +4594,9 @@ Python.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "python" "test.py"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "test.py")))))))
     (build-system python-build-system)
     (home-page "https://github.com/un33k/python-slugify")
     (synopsis "Python Slugify application that handles Unicode")