mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: httpstat: Update to 1.3.2.
* gnu/packages/networking.scm (httpstat): Update to 1.3.2. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. <#:tests?>: Disable them. <#:phases>: Replace 'check phase. [native-inputs]: Add python-setuptools. Change-Id: Ic5797b3d5ed6319a70364a724662ebfb8b1ef9c2 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
fdd6de5c4b
commit
7c84917350
1 changed files with 23 additions and 17 deletions
|
|
@ -2196,7 +2196,7 @@ application stack itself.")
|
|||
(define-public httpstat
|
||||
(package
|
||||
(name "httpstat")
|
||||
(version "1.3.1")
|
||||
(version "1.3.2")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
|
|
@ -2205,23 +2205,29 @@ application stack itself.")
|
|||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0cw8299a080m42slsimz31xs0gjnh833gpbj2dsr4hkcinrn4iyd"))))
|
||||
(build-system python-build-system)
|
||||
(inputs (list curl))
|
||||
(base32 "1z0m00wzbd1y9knypvw425h4qjqyp4x162j7crpgmfic1wpwbqbl"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'build 'fix-curl-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "httpstat.py"
|
||||
(("ENV_CURL_BIN.get\\('curl'\\)")
|
||||
(string-append "ENV_CURL_BIN.get('"
|
||||
(assoc-ref inputs "curl")
|
||||
"/bin/curl')"))
|
||||
;; "curl -w time_*" units seems to have
|
||||
;; changed from seconds to nanoseconds.
|
||||
(("d\\[k\\] \\* 1000") "d[k] / 1000"))
|
||||
#t)))))
|
||||
(list
|
||||
#:tests? #f ; Tests require network access.
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'build 'fix-curl-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "httpstat.py"
|
||||
(("ENV_CURL_BIN.get\\('curl'\\)")
|
||||
(format #f "ENV_CURL_BIN.get(~s)"
|
||||
(search-input-file inputs "/bin/curl")))
|
||||
;; "curl -w time_*" units seems to have
|
||||
;; changed from seconds to nanoseconds.
|
||||
(("d\\[k\\] \\* 1000")
|
||||
"d[k] / 1000")) #t))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "bash" "httpstat_test.sh")))))))
|
||||
(native-inputs (list python-setuptools))
|
||||
(inputs (list curl))
|
||||
(home-page "https://github.com/reorx/httpstat")
|
||||
(synopsis "Visualize curl statistics")
|
||||
(description
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue