mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: osc: Switch to pyproject.
* gnu/packages/build-tools.scm (osc): [build-system]: Switch to pyproject-build-system. [arguments]<#:tests>: Disable them with comment. <#:phases>: Rewrite phase 'fix-filename. [native-inputs]: Add python-setuptools, python-wheel. [description]: Run guix style. Change-Id: I1db8679885d5a5551059ab6f2c6e30b84cd0c19d Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
e46a5255ff
commit
b55c1df9fe
1 changed files with 18 additions and 20 deletions
|
@ -720,29 +720,27 @@ a build worked by accident.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1sqdnkka3c6b6hwnrmlwrgy7w62cp8raq8mph9pgd2lydzzbvwlp"))))
|
(base32 "1sqdnkka3c6b6hwnrmlwrgy7w62cp8raq8mph9pgd2lydzzbvwlp"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
;; XXX: Tests require a config file.
|
||||||
(add-after 'install 'fix-filename
|
#:tests? #f
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
#:phases
|
||||||
(let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
|
#~(modify-phases %standard-phases
|
||||||
;; Main osc tool is renamed in spec file, not setup.py, let's
|
(add-after 'install 'fix-filename
|
||||||
;; do that too.
|
(lambda _
|
||||||
(rename-file
|
(with-directory-excursion (string-append #$output "/bin")
|
||||||
(string-append bin "osc-wrapper.py")
|
;; osc tool is renamed in spec file, not setup.py.
|
||||||
(string-append bin "osc"))
|
(rename-file "osc-wrapper.py" "osc")))))))
|
||||||
#t))))))
|
(native-inputs (list python-chardet python-setuptools python-wheel))
|
||||||
(native-inputs
|
(inputs (list python-m2crypto python-pycurl rpm)) ;for python-rpm
|
||||||
(list python-chardet))
|
|
||||||
(inputs
|
|
||||||
(list python-m2crypto python-pycurl rpm)) ; for python-rpm
|
|
||||||
(home-page "https://github.com/openSUSE/osc")
|
(home-page "https://github.com/openSUSE/osc")
|
||||||
(synopsis "Open Build Service command line tool")
|
(synopsis "Open Build Service command line tool")
|
||||||
(description "@command{osc} is a command line interface to the Open Build
|
(description
|
||||||
Service. It allows you to checkout, commit, perform reviews etc. The vast
|
"@command{osc} is a command line interface to the Open Build Service. It
|
||||||
majority of the OBS functionality is available via commands and the rest can
|
allows you to checkout, commit, perform reviews etc. The vast majority of the
|
||||||
be reached via direct API calls.")
|
OBS functionality is available via commands and the rest can be reached via
|
||||||
|
direct API calls.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
(define-public compdb
|
(define-public compdb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue