From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: Re: [PATCH] gnu: Add nyx. Date: Wed, 18 Jan 2017 16:57:50 +0000 Message-ID: <87bmv4nw4x.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20170118163906.2474-1-contact.ng0@cryptolab.net> <20170118163906.2474-2-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTtXb-0004Md-GV for guix-devel@gnu.org; Wed, 18 Jan 2017 11:56:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTtXY-0008Uh-2E for guix-devel@gnu.org; Wed, 18 Jan 2017 11:56:55 -0500 Received: from fragranza.investici.org ([178.175.144.26]:53588) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTtXX-0008UG-ND for guix-devel@gnu.org; Wed, 18 Jan 2017 11:56:51 -0500 Received: from [178.175.144.26] (fragranza [178.175.144.26]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id 7878F2C00C9 for ; Wed, 18 Jan 2017 16:56:48 +0000 (UTC) In-Reply-To: <20170118163906.2474-2-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 There should be a cover letter... but I hope gnu.org just keeps it and I don't see it here. Thing is, tests are broken and their custom install phase is broken too. I think Efraim has experience in fixing tor software and it would be great if this doesn't fall into branch-sleep for weeks or months here on my side. contact.ng0@cryptolab.net writes: > 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 =C2=A9 2013, 2014, 2015 Ludovic Court=C3=A8s > ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver > ;;; Copyright =C2=A9 2016 Efraim Flashner > -;;; Copyright =C2=A9 2016 ng0 > +;;; Copyright =C2=A9 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)) > =20 > @@ -223,3 +226,44 @@ internet. The other user just needs to use Tor Br= owser 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 com= mit 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 inter= net. > + #: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 stat= us > +monitor for Tor. This functions much like top does for system usage, > +providing real time statistics.") > + (license gpl3+)))) > --=20 > 2.11.0 > > --=20 =E2=99=A5=E2=92=B6 ng0 -- https://www.inventati.org/patternsinthechaos/