From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYIoD-0002Rd-97 for guix-patches@gnu.org; Wed, 27 Jun 2018 18:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYIoA-0001xs-3B for guix-patches@gnu.org; Wed, 27 Jun 2018 18:21:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYIo9-0001x2-SV for guix-patches@gnu.org; Wed, 27 Jun 2018 18:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYIo9-0006yQ-MT for guix-patches@gnu.org; Wed, 27 Jun 2018 18:21:01 -0400 Subject: [bug#31980] Add Silkaj take 2 References: <20180626171938.31426-1-mail@nicolasgoaziou.fr> In-Reply-To: <20180626171938.31426-1-mail@nicolasgoaziou.fr> Resent-Message-ID: From: Nicolas Goaziou Date: Thu, 28 Jun 2018 00:20:19 +0200 Message-ID: <87efgrq3bw.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31980@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, Here is a simplification of the last patch. Regards, -- Nicolas Goaziou 0x80A93738 --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-silkaj.patch Content-Transfer-Encoding: quoted-printable Content-Description: silkaj v2 >From 9b54eea5d3487a0d5868be31c2cbc5347c84d59a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 16 May 2018 15:52:51 +0200 Subject: [PATCH] gnu: Add silkaj. * gnu/packages/finance.scm (silkaj): New variable. --- gnu/packages/finance.scm | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index c93f64193..787510cb3 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2018 Eric Bavier ;;; Copyright =C2=A9 2018 Adriano Peluso +;;; Copyright =C2=A9 2018 Nicolas Goaziou ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,6 +30,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (guix build-system python) @@ -752,3 +754,63 @@ Luhn and family of ISO/IEC 7064 check digit algorithms= . ") =20 (define-public python2-stdnum (package-with-python2 python-stdnum)) + +(define-public silkaj + (package + (name "silkaj") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.duniter.org/clients/python/silkaj.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0xy25lpgz04nxikjvxlnlckrc9xmsxyiz2qm0bsiid8cnbdqcn12")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;no test + #:phases + (modify-phases %standard-phases + ;; The program is just a bunch of Python files in "src/" director= y. + ;; Many phases are useless. However, `python-build-system' corre= ctly + ;; sets PYTHONPATH and patches Python scripts. + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share/silkaj")) + (executable (string-append share "/silkaj.py")) + (bin (string-append out "/bin"))) + ;; Install data. + (copy-recursively "src" share) + ;; Install executable. + (mkdir-p bin) + (with-directory-excursion bin + (symlink executable "silkaj"))) + #t))))) + (inputs + `(("python-commandlines" ,python-commandlines) + ("python-ipaddress" ,python-ipaddress) + ("python-pyaes" ,python-pyaes) + ("python-pynacl" ,python-pynacl) + ("python-scrypt" ,python-scrypt) + ("python-tabulate" ,python-tabulate))) + (home-page "https://silkaj.duniter.org/") + (synopsis "Command line client for Duniter network") + (description "@code{Silkaj} is a command line client for the +@uref{https://github.com/duniter/duniter/, Duniter} network. + +Its features are: +@itemize +@item information about currency, +@item issuers difficulty to generate next block, +@item network view of nodes, +@item list of last issuers, +@item send transactions, +@item get account amount. +@end itemize") + (license license:agpl3+))) --=20 2.18.0 --=-=-=--