diff options
| author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-05-16 15:52:51 +0200 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-07-02 17:50:20 +0200 |
| commit | 730553d715ee5f932c9ca905f5efcd632a8609f2 (patch) | |
| tree | 59b6b4e62184f209266b25c866ce16990d303dd6 /gnu | |
| parent | 1fa1d822fa7042087f096375088629ccd4b48e9f (diff) | |
gnu: Add silkaj.
* gnu/packages/finance.scm (silkaj): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/finance.scm | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index c93f641933e..787510cb37b 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> | 9 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
| 10 | ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org> | 10 | ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org> |
| 11 | ;;; Copyright © 2018 Adriano Peluso <catonano@gmail.com> | 11 | ;;; Copyright © 2018 Adriano Peluso <catonano@gmail.com> |
| 12 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> | ||
| 12 | ;;; | 13 | ;;; |
| 13 | ;;; This file is part of GNU Guix. | 14 | ;;; This file is part of GNU Guix. |
| 14 | ;;; | 15 | ;;; |
| @@ -29,6 +30,7 @@ | |||
| 29 | #:use-module ((guix licenses) #:prefix license:) | 30 | #:use-module ((guix licenses) #:prefix license:) |
| 30 | #:use-module (guix packages) | 31 | #:use-module (guix packages) |
| 31 | #:use-module (guix download) | 32 | #:use-module (guix download) |
| 33 | #:use-module (guix git-download) | ||
| 32 | #:use-module (guix build-system gnu) | 34 | #:use-module (guix build-system gnu) |
| 33 | #:use-module (guix build-system cmake) | 35 | #:use-module (guix build-system cmake) |
| 34 | #:use-module (guix build-system python) | 36 | #:use-module (guix build-system python) |
| @@ -752,3 +754,63 @@ Luhn and family of ISO/IEC 7064 check digit algorithms. ") | |||
| 752 | 754 | ||
| 753 | (define-public python2-stdnum | 755 | (define-public python2-stdnum |
| 754 | (package-with-python2 python-stdnum)) | 756 | (package-with-python2 python-stdnum)) |
| 757 | |||
| 758 | (define-public silkaj | ||
| 759 | (package | ||
| 760 | (name "silkaj") | ||
| 761 | (version "0.5.0") | ||
| 762 | (source | ||
| 763 | (origin | ||
| 764 | (method git-fetch) | ||
| 765 | (uri (git-reference | ||
| 766 | (url "https://git.duniter.org/clients/python/silkaj.git") | ||
| 767 | (commit (string-append "v" version)))) | ||
| 768 | (file-name (git-file-name name version)) | ||
| 769 | (sha256 | ||
| 770 | (base32 | ||
| 771 | "0xy25lpgz04nxikjvxlnlckrc9xmsxyiz2qm0bsiid8cnbdqcn12")))) | ||
| 772 | (build-system python-build-system) | ||
| 773 | (arguments | ||
| 774 | `(#:tests? #f ;no test | ||
| 775 | #:phases | ||
| 776 | (modify-phases %standard-phases | ||
| 777 | ;; The program is just a bunch of Python files in "src/" directory. | ||
| 778 | ;; Many phases are useless. However, `python-build-system' correctly | ||
| 779 | ;; sets PYTHONPATH and patches Python scripts. | ||
| 780 | (delete 'configure) | ||
| 781 | (delete 'build) | ||
| 782 | (replace 'install | ||
| 783 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 784 | (let* ((out (assoc-ref outputs "out")) | ||
| 785 | (share (string-append out "/share/silkaj")) | ||
| 786 | (executable (string-append share "/silkaj.py")) | ||
| 787 | (bin (string-append out "/bin"))) | ||
| 788 | ;; Install data. | ||
| 789 | (copy-recursively "src" share) | ||
| 790 | ;; Install executable. | ||
| 791 | (mkdir-p bin) | ||
| 792 | (with-directory-excursion bin | ||
| 793 | (symlink executable "silkaj"))) | ||
| 794 | #t))))) | ||
| 795 | (inputs | ||
| 796 | `(("python-commandlines" ,python-commandlines) | ||
| 797 | ("python-ipaddress" ,python-ipaddress) | ||
| 798 | ("python-pyaes" ,python-pyaes) | ||
| 799 | ("python-pynacl" ,python-pynacl) | ||
| 800 | ("python-scrypt" ,python-scrypt) | ||
| 801 | ("python-tabulate" ,python-tabulate))) | ||
| 802 | (home-page "https://silkaj.duniter.org/") | ||
| 803 | (synopsis "Command line client for Duniter network") | ||
| 804 | (description "@code{Silkaj} is a command line client for the | ||
| 805 | @uref{https://github.com/duniter/duniter/, Duniter} network. | ||
| 806 | |||
| 807 | Its features are: | ||
| 808 | @itemize | ||
| 809 | @item information about currency, | ||
| 810 | @item issuers difficulty to generate next block, | ||
| 811 | @item network view of nodes, | ||
| 812 | @item list of last issuers, | ||
| 813 | @item send transactions, | ||
| 814 | @item get account amount. | ||
| 815 | @end itemize") | ||
| 816 | (license license:agpl3+))) | ||
