From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH] gnu: Add nyx. Date: Wed, 18 Jan 2017 16:39:06 +0000 Message-ID: <20170118163906.2474-2-contact.ng0@cryptolab.net> References: <20170118163906.2474-1-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTtFX-0005xq-VT for guix-devel@gnu.org; Wed, 18 Jan 2017 11:38:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTtFU-0007QF-2L for guix-devel@gnu.org; Wed, 18 Jan 2017 11:38:16 -0500 Received: from aibo.runbox.com ([91.220.196.211]:49244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTtFT-0007PD-Ni for guix-devel@gnu.org; Wed, 18 Jan 2017 11:38:12 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cTtFR-0004Vw-1R for guix-devel@gnu.org; Wed, 18 Jan 2017 17:38:09 +0100 In-Reply-To: <20170118163906.2474-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * gnu/packages/tor.scm (nyx): New variable. --- gnu/packages/tor.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index 6f26f404b..8b03b14c6 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès ;;; Copyright © 2014, 2015 Mark H Weaver ;;; Copyright © 2016 Efraim Flashner -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,11 +28,14 @@ #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages libevent) + #:use-module (gnu packages lsof) #:use-module (gnu packages compression) #:use-module (gnu packages pcre) #:use-module (gnu packages python) #:use-module (gnu packages qt) #:use-module (gnu packages autotools) + #:use-module (gnu packages dns) + #:use-module (gnu packages linux) #:use-module (gnu packages tls) #:use-module (gnu packages w3m)) @@ -223,3 +226,44 @@ internet. The other user just needs to use Tor Browser to download the file from you.") (license (list gpl3+ bsd-3)))) ; onionshare/socks.py + +;; The last release of arm was 5 years ago, meanwhile python3 support has +;; been added and the software was renamed to nyx. +(define-public nyx + (let ((commit "fea209127484d9b304b908a4711c9528b1d065bc") + (revision "1")) + (package + (name "nyx") + (version (string-append "1.4.5.0-" revision "." (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.torproject.org/nyx.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1g0l4988076xg5gs0x0nxzlg58rfx5g5agmklvyh4yp03vxncdb9")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;122 out of 228 fail because the tests need internet. + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda _ + (zero? (system* "python" "setup.py" "install"))))))) + (inputs + `(("tor" ,tor) + ("python-stem" ,python-stem))) + ;; (native-inputs + ;; `(("python-mock" ,python-mock) + ;; ("lsof" ,lsof) + ;; ("net-tools" ,net-tools))) + (home-page "https://www.atagar.com/arm/") + (synopsis "Ncurses-based status monitor for Tor relays") + (description + "Anonymizing relay monitor (arm) is a command line interface status +monitor for Tor. This functions much like top does for system usage, +providing real time statistics.") + (license gpl3+)))) -- 2.11.0