mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: python-tree-sitter: Fix tests.
* gnu/packages/tree-sitter.scm (python-tree-sitter) [source]: Improve style. [arguments]<#:test-backend>: Set it. <#:phases>: Add phase 'remove-uninstalled-package. Change-Id: I3f284057b183c9f03c254d44581d7fd9ef6e75b2 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
de92d50e11
commit
5501f97b57
1 changed files with 15 additions and 10 deletions
|
|
@ -46,18 +46,19 @@
|
|||
(package
|
||||
(name "python-tree-sitter")
|
||||
(version "0.21.3")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/tree-sitter/py-tree-sitter")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1cdxl0zyldml3x5wi2nmlmhwfahwxalcr5lxyb6j6762irmm4b2c"))))
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/tree-sitter/py-tree-sitter")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1cdxl0zyldml3x5wi2nmlmhwfahwxalcr5lxyb6j6762irmm4b2c"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-backend #~'unittest
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'set-tree-sitter-lib-path
|
||||
|
|
@ -94,7 +95,11 @@
|
|||
(or native-inputs inputs)
|
||||
(string-append
|
||||
"lib/tree-sitter/libtree-sitter-" name ".so"))
|
||||
name)))))))))
|
||||
name))))))
|
||||
;; XXX: See https://codeberg.org/guix/guix/issues/2108
|
||||
(add-before 'check 'remove-uninstalled-package
|
||||
(lambda _
|
||||
(delete-file-recursively "tree_sitter"))))))
|
||||
(inputs (list tree-sitter))
|
||||
(native-inputs
|
||||
(list tree-sitter-embedded-template
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue