mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: wfetch: Switch to pyproject.
* gnu/packages/python-xyz.scm (wfetch): [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Improve style. <#:use-setuptools?>: Unset. [native-inputs]: Add python-setuptools-next. Change-Id: I9b8fa66a3ff0ef20adcda3541918ce0b85e8e4f6 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
31ad41fa9a
commit
40cd075186
1 changed files with 25 additions and 22 deletions
|
@ -18016,31 +18016,33 @@ structures.")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference (url home-page)
|
(uri (git-reference
|
||||||
(commit commit)))
|
(url home-page)
|
||||||
|
(commit commit)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1dmr85plx8zr6s14ym3r32g6crwxghkval5a24ah90ijx4dbn5q5"))))
|
(base32 "1dmr85plx8zr6s14ym3r32g6crwxghkval5a24ah90ijx4dbn5q5"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:use-setuptools? #f ; no setup.py
|
(list
|
||||||
#:tests? #f ; no test suite
|
#:tests? #f ;no test suite
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'build)
|
(delete 'build)
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let ((bin (string-append #$output "/bin"))
|
||||||
(bin (string-append out "/bin"))
|
(share (string-append #$output "/share")))
|
||||||
(share (string-append out "/share")))
|
(mkdir-p share)
|
||||||
(mkdir-p share)
|
(substitute* "wfetch/wfetch.py"
|
||||||
(substitute* "wfetch/wfetch.py"
|
(("os.sep, 'opt', 'wfetch'")
|
||||||
(("os.sep, 'opt', 'wfetch'") (string-append "'" share "'")))
|
(string-append "'" share "'")))
|
||||||
; The documentation expects the executable to be named
|
;; The documentation expects the executable to be named
|
||||||
; 'wfetch', not 'wfetch.py'.
|
;; 'wfetch', not 'wfetch.py'.
|
||||||
(rename-file "wfetch/wfetch.py" "wfetch/wfetch")
|
(rename-file "wfetch/wfetch.py" "wfetch/wfetch")
|
||||||
(install-file "wfetch/wfetch" bin)
|
(install-file "wfetch/wfetch" bin)
|
||||||
(copy-recursively "wfetch/icons" share)))))))
|
(copy-recursively "wfetch/icons" share)))))))
|
||||||
|
(native-inputs (list python-setuptools-next))
|
||||||
(inputs (list python-pyowm python-fire python-termcolor python-requests))
|
(inputs (list python-pyowm python-fire python-termcolor python-requests))
|
||||||
(synopsis "Command-line tool to display weather info")
|
(synopsis "Command-line tool to display weather info")
|
||||||
(description
|
(description
|
||||||
|
@ -18051,7 +18053,8 @@ To use it, you must first run:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
export WEATHER_CLI_API=@var{your OpenWeatherMap API key}
|
export WEATHER_CLI_API=@var{your OpenWeatherMap API key}
|
||||||
@end example\n")
|
@end example
|
||||||
|
")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+))))
|
||||||
|
|
||||||
(define-public python-get-version
|
(define-public python-get-version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue