Skip to content
Snippets Groups Projects
Unverified Commit 9e6c7c42 authored by Stefan Reichör's avatar Stefan Reichör Committed by Marius Bakke
Browse files

gnu: Add httpstat.


* gnu/packages/networking.scm (httpstat): New variable.

Signed-off-by: default avatarMarius Bakke <mbakke@fastmail.com>
parent ea8450c8
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Stefan Reichör <stefan@xsteve.at> ;;; Copyright © 2015, 2016 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com> ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2016 John Darrington <jmd@gnu.org> ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
...@@ -34,6 +34,7 @@ (define-module (gnu packages networking) ...@@ -34,6 +34,7 @@ (define-module (gnu packages networking)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages admin) #:use-module (gnu packages admin)
#:use-module (gnu packages adns) #:use-module (gnu packages adns)
...@@ -43,6 +44,7 @@ (define-module (gnu packages networking) ...@@ -43,6 +44,7 @@ (define-module (gnu packages networking)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages code) #:use-module (gnu packages code)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases) #:use-module (gnu packages databases)
#:use-module (gnu packages flex) #:use-module (gnu packages flex)
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
...@@ -549,6 +551,38 @@ (define-public httping ...@@ -549,6 +551,38 @@ (define-public httping
application stack itself.") application stack itself.")
(license license:gpl2))) ; with permission to link with OpenSSL (license license:gpl2))) ; with permission to link with OpenSSL
(define-public httpstat
(package
(name "httpstat")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "httpstat" version))
(sha256
(base32
"1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
(build-system python-build-system)
(inputs `(("curl" ,curl)))
(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')"))))))))
(home-page "https://github.com/reorx/httpstat")
(synopsis "Visualize curl statistics")
(description
"@command{httpstat} is a tool to visualize statistics from the
@command{curl} HTTP client. It acts as a wrapper for @command{curl} and
prints timing information for each step of the HTTP request (DNS lookup,
TCP connection, TLS handshake and so on) in the terminal.")
(license license:expat)))
(define-public bwm-ng (define-public bwm-ng
(package (package
(name "bwm-ng") (name "bwm-ng")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment