~ruther/guix-local

9f1a3c62f178bff0a02bbd3d6f38f473e179dad9 — Evgenii Klimov 7 months ago 10acea6
gnu: python-tree-sitter-grammar: Enable tests by default.

- Add default value for tests? argument.
- Remove python-wheel from native-inputs, it's no longer required.

* gnu/packages/tree-sitter.scm (python-tree-sitter-grammar): Enable tests by default.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
1 files changed, 2 insertions(+), 3 deletions(-)

M gnu/packages/tree-sitter.scm
M gnu/packages/tree-sitter.scm => gnu/packages/tree-sitter.scm +2 -3
@@ 1608,7 1608,7 @@ files.")))
Tree-sitter parsing library.")
    (license license:expat)))

(define* (python-tree-sitter-grammar pkg #:key tests?)
(define* (python-tree-sitter-grammar pkg #:key (tests? #t))
  "Returns a package for Python bindings of a Tree-sitter grammar.  PKG is a
package for a Tree-sitter grammar; its name will be used with python- prefix
to generate the package name.  When TESTS? is true, tests are enabled."


@@ 1624,8 1624,7 @@ to generate the package name.  When TESTS? is true, tests are enabled."
                               (list python-pytest
                                     python-tree-sitter)
                               '())
                           (list python-setuptools
                                 python-wheel)))
                           (list python-setuptools)))
    (description
     (string-append (package-description pkg)
                    (P_ "\n\nThis variant provides Python bindings.")))))