From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 1/2] gnu: Add tremc. Date: Fri, 27 Jan 2017 19:31:31 +0100 Message-ID: <871svo2w3g.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXBJB-0003TY-Go for guix-devel@gnu.org; Fri, 27 Jan 2017 13:31:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXBJ8-0005Hr-DP for guix-devel@gnu.org; Fri, 27 Jan 2017 13:31:37 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54589) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cXBJ8-0005HZ-9P for guix-devel@gnu.org; Fri, 27 Jan 2017 13:31:34 -0500 In-Reply-To: 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: Leo Famulari , guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Famulari writes: > * gnu/packages/bittorrent.scm (tremc): New variable. > --- > gnu/packages/bittorrent.scm | 45 +++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 45 insertions(+) > > diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm > index 716d8b766..a7294f38a 100644 > --- a/gnu/packages/bittorrent.scm > +++ b/gnu/packages/bittorrent.scm > @@ -2,6 +2,7 @@ > ;;; Copyright =C2=A9 2014 Taylan Ulrich Bayirli/Kammer > ;;; Copyright =C2=A9 2014, 2015, 2016 Ludovic Court=C3=A8s > ;;; Copyright =C2=A9 2016 Leo Famulari > +;;; Copyright =C2=A9 2016, 2017 Leo Famulari > ;;; Copyright =C2=A9 2016, 2017 Efraim Flashner > ;;; Copyright =C2=A9 2016 Tom=C3=A1=C5=A1 =C4=8Cech > ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > @@ -25,6 +26,7 @@ > (define-module (gnu packages bittorrent) > #:use-module (guix packages) > #:use-module (guix download) > + #:use-module (guix git-download) > #:use-module (guix build-system gnu) > #:use-module (guix build-system python) > #:use-module (guix build-system glib-or-gtk) > @@ -172,6 +174,49 @@ XML-RPC over SCGI.") > (home-page "https://github.com/rakshasa/rtorrent") > (license l:gpl2+))) >=20=20 > +(define-public tremc > + (let ((commit "401f2303c9b5a6e2e7b0808617d794576d4aa29e") > + (revision "0")) > + (package > + (name "tremc") > + (version (string-append "0.0.0-" revision "." (string-take commit = 7))) The script has a VERSION variable specifying 0.9.0, so I think we should use that. It would of course be better if they provided tagged releases.. > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/louipc/tremc.git") > + (commit commit))) > + (sha256 > + (base32 > + "1h2720zn35iggmf9av65g119b0bhskwm1ng0zbkjryaf38nfzpin")))) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f ; no test suite > + #:phases > + (modify-phases %standard-phases > + ;; The software is just a Python script that must be > + ;; copied into place. > + (delete 'build) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin (string-append out "/bin")) > + (man (string-append out "/share/man/man1")) > + ;; FIXME install zsh completions > + (completions (string-append out "/etc/bash_complet= ion.d"))) > + (install-file "tremc" bin) > + (install-file "tremc.1" man) > + (install-file > + (string-append > + "completion/bash/" > + "transmission-remote-cli-bash-completion.sh") > + completions))))))) > + (synopsis "Console client for the Transmission BitTorrent daemon") > + (description "Tremc is a console client, with a curses interface, = for the > +Transmission BitTorrent daemon.") So all the imports in the script are part of the python standard library, including "curses"? Neat. LGTM! > + (home-page "https://github.com/louipc/tremc") > + (license l:gpl3+)))) > + > (define-public transmission-remote-cli > (package > (name "transmission-remote-cli") > --=20 > 2.11.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAliLkgQACgkQoqBt8qM6 VPpndQgAiendw+GPkhA67nONmXP5DFNzR32r5MB/MFAXUySdzikmblVsLDdAv9rW iUviLp6N4UDoCO2Y/OpuwFIwSzqwnLd9Yj6XRL8jIRPn1F527g1oo9meI4ordhsS dTj07cbJP4PS+l11FU8wfS4cwGyZ9RzcB28W7aZcnlTphFDpQatCf/qGH4yytuG+ rY9YFL+/MmeIJuDngGUQMRePeaIjFQHA5OjaBOVuhRgVZctf4h6Yul5Rj87VM9ya uw4xmWfBbgeyFnkzkihSs3Ieuyk2XxtaXO19HBYzIP6sBbxLaGxtQqM4BFxZRm3N BIAmZ65QG6XpOUkRNC5756t6OaACtw== =J/Rv -----END PGP SIGNATURE----- --=-=-=--