gnu: python-textual: Remove input labels.
* gnu/packages/python-xyz.scm (python-textual)[arguments]: Define the 'tests' origin here. [native-inputs]: Remove "tests" input and remove input labels.
This commit is contained in:
parent
96cbfc6202
commit
a0c83aa04b
1 changed files with 22 additions and 23 deletions
|
@ -16053,32 +16053,31 @@ syntax highlighting, markdown and more to the terminal.")
|
||||||
"08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
|
"08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(let ((tests
|
||||||
#~(modify-phases %standard-phases
|
;; The release on pypi comes without tests. We can't build
|
||||||
(replace 'check
|
;; from this checkout, though, because installation requires
|
||||||
(lambda* (#:key inputs tests? #:allow-other-keys)
|
;; an invocation of poetry.
|
||||||
(when tests?
|
(origin
|
||||||
(copy-recursively (string-append
|
(method git-fetch)
|
||||||
(assoc-ref inputs "tests") "/tests")
|
(uri (git-reference
|
||||||
"tests")
|
(url "https://github.com/Textualize/textual")
|
||||||
(invoke "python" "-m" "pytest" "-vv")))))))
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))
|
||||||
|
(list #:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(copy-recursively #$(file-append tests "/tests")
|
||||||
|
"tests")
|
||||||
|
(invoke "python" "-m" "pytest" "-vv"))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-rich python-typing-extensions))
|
(list python-rich python-typing-extensions))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)
|
(list python-pytest))
|
||||||
("tests"
|
|
||||||
;; The release on pypi comes without tests. We can't build from this
|
|
||||||
;; checkout, though, because installation requires an invocation of
|
|
||||||
;; poetry.
|
|
||||||
,(origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://github.com/Textualize/textual")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax"))))))
|
|
||||||
(home-page "https://github.com/Textualize/textual")
|
(home-page "https://github.com/Textualize/textual")
|
||||||
(synopsis "Build text user interfaces in Python")
|
(synopsis "Build text user interfaces in Python")
|
||||||
(description "Textual is a @acronym{TUI, Text User Interface} framework
|
(description "Textual is a @acronym{TUI, Text User Interface} framework
|
||||||
|
|
Reference in a new issue