1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
5 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
6 ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
7 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
8 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
9 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
10 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2018 Adriano Peluso <catonano@gmail.com>
12 ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
13 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages finance)
31 #:use-module ((guix licenses) #:prefix license:)
32 #:use-module (guix packages)
33 #:use-module (guix download)
34 #:use-module (guix git-download)
35 #:use-module (guix build-system gnu)
36 #:use-module (guix build-system cmake)
37 #:use-module (guix build-system python)
38 #:use-module (gnu packages)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages boost)
41 #:use-module (gnu packages check)
42 #:use-module (gnu packages crypto)
43 #:use-module (gnu packages databases)
44 #:use-module (gnu packages documentation)
45 #:use-module (gnu packages dns)
46 #:use-module (gnu packages emacs)
47 #:use-module (gnu packages graphviz)
48 #:use-module (gnu packages groff)
49 #:use-module (gnu packages libedit)
50 #:use-module (gnu packages libevent)
51 #:use-module (gnu packages libunwind)
52 #:use-module (gnu packages libusb)
53 #:use-module (gnu packages linux)
54 #:use-module (gnu packages multiprecision)
55 #:use-module (gnu packages networking)
56 #:use-module (gnu packages pkg-config)
57 #:use-module (gnu packages protobuf)
58 #:use-module (gnu packages python)
59 #:use-module (gnu packages python-crypto)
60 #:use-module (gnu packages python-web)
61 #:use-module (gnu packages qt)
62 #:use-module (gnu packages readline)
63 #:use-module (gnu packages texinfo)
64 #:use-module (gnu packages textutils)
65 #:use-module (gnu packages tls)
66 #:use-module (gnu packages upnp)
67 #:use-module (gnu packages web)
68 #:use-module (gnu packages xml)
69 #:use-module (gnu packages gnuzilla))
71 (define-public bitcoin-core
78 (string-append "https://bitcoin.org/bin/bitcoin-core-"
79 version "/bitcoin-" version ".tar.gz"))
82 "1zkqp93yircd3pbxczxfnibkpq0sgcv5r7wg6d196b9pwgr9zd39"))))
83 (build-system gnu-build-system)
85 `(("pkg-config" ,pkg-config)
86 ("python" ,python) ; for the tests
87 ("util-linux" ,util-linux) ; provides the hexdump command for tests
88 ("qttools" ,qttools)))
90 `(("bdb" ,bdb-5.3) ; with 6.2.23, there is an error: ambiguous overload
92 ("libevent" ,libevent)
93 ("miniupnpc" ,miniupnpc)
95 ("protobuf" ,protobuf)
100 ;; We use a bdb version newer than 4.8.
101 "--with-incompatible-bdb"
102 ;; Boost is not found unless specified manually.
103 (string-append "--with-boost="
104 (assoc-ref %build-inputs "boost"))
105 ;; XXX: The configure script looks up Qt paths by
106 ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick
107 ;; up executables residing in 'qttools', so we specify them here.
108 (string-append "ac_cv_path_LRELEASE="
109 (assoc-ref %build-inputs "qttools")
111 (string-append "ac_cv_path_LUPDATE="
112 (assoc-ref %build-inputs "qttools")
115 (modify-phases %standard-phases
116 (add-before 'check 'set-home
118 (setenv "HOME" (getenv "TMPDIR"))))))) ; Tests write to $HOME.
119 (home-page "https://bitcoin.org/en/")
120 (synopsis "Bitcoin peer-to-peer client")
122 "Bitcoin is a digital currency that enables instant payments to anyone
123 anywhere in the world. It uses peer-to-peer technology to operate without
124 central authority: managing transactions and issuing money are carried out
125 collectively by the network. Bitcoin Core is the reference implementation
126 of the bitcoin protocol. This package provides the Bitcoin Core command
127 line client and a client based on Qt.")
128 (license license:expat)))
130 (define-public ledger
137 "https://github.com/ledger/ledger/archive/v"
139 (file-name (string-append name "-" version ".tar.gz"))
142 "12jlv3gsjhrja25q9hrwh73cdacd2l3c2yyn8qnijav9mdhnbw4h"))
143 (patches (search-patches "ledger-revert-boost-python-fix.patch"
144 "ledger-fix-uninitialized.patch"))))
145 (build-system cmake-build-system)
147 `(#:modules ((guix build cmake-build-system)
148 ((guix build gnu-build-system) #:prefix gnu:)
150 (guix build emacs-utils))
151 #:imported-modules (,@%cmake-build-system-modules
152 (guix build emacs-utils))
154 `("-DBUILD_DOCS:BOOL=ON"
155 "-DBUILD_WEB_DOCS:BOOL=ON"
156 "-DBUILD_EMACSLISP:BOOL=ON"
157 "-DUSE_PYTHON:BOOL=ON"
158 "-DCMAKE_INSTALL_LIBDIR:PATH=lib"
159 ,(string-append "-DUTFCPP_INCLUDE_DIR:PATH="
160 (assoc-ref %build-inputs "utfcpp")
162 ;; Skip failing test BaselineTest_cmd-org during the check phase.
163 ;; This is a known upstream issue. See
164 ;; https://github.com/ledger/ledger/issues/550
165 #:make-flags (list "ARGS=-E BaselineTest_cmd-org")
167 (modify-phases %standard-phases
168 (add-before 'configure 'install-examples
169 (lambda* (#:key outputs #:allow-other-keys)
170 (let ((examples (string-append (assoc-ref outputs "out")
171 "/share/doc/ledger/examples")))
172 (install-file "test/input/sample.dat" examples)
173 (install-file "test/input/demo.ledger" examples))
175 (add-after 'build 'build-doc
176 (lambda _ (invoke "make" "doc")))
177 (add-before 'check 'check-setup
178 ;; One test fails if it can't set the timezone.
179 (lambda* (#:key inputs #:allow-other-keys)
181 (string-append (assoc-ref inputs "tzdata")
184 (replace 'check (assoc-ref gnu:%standard-phases 'check))
185 (add-after 'install 'relocate-elisp
186 (lambda* (#:key outputs #:allow-other-keys)
187 (let* ((site-dir (string-append (assoc-ref outputs "out")
188 "/share/emacs/site-lisp"))
189 (guix-dir (string-append site-dir "/guix.d"))
190 (orig-dir (string-append site-dir "/ledger-mode"))
191 (dest-dir (string-append guix-dir "/ledger-mode")))
193 (rename-file orig-dir dest-dir)
194 (emacs-generate-autoloads ,name dest-dir)))))))
204 `(("emacs" ,emacs-minimal)
206 ("texinfo" ,texinfo)))
207 (home-page "https://ledger-cli.org/")
208 (synopsis "Command-line double-entry accounting program")
210 "Ledger is a powerful, double-entry accounting system that is
211 accessed from the UNIX command-line. This may put off some users, since
212 there is no flashy UI, but for those who want unparalleled reporting
213 access to their data there are few alternatives.
215 Ledger uses text files for input. It reads the files and generates
216 reports; there is no other database or stored state. To use Ledger,
217 you create a file of your account names and transactions, run from the
218 command line with some options to specify input and requested reports, and
219 get output. The output is generally plain text, though you could generate
220 a graph or html instead. Ledger is simple in concept, surprisingly rich
221 in ability, and easy to use.")
222 ;; There are some extra licenses in files which do not presently get
223 ;; installed when you build this package. Different versions of the GPL
224 ;; are used in the contrib and python subdirectories. The bundled version
225 ;; of utfcpp is under the Boost 1.0 license. Also the file
226 ;; `tools/update_copyright_year` has an Expat license.
227 (license (list license:bsd-3
228 license:asl2.0 ; src/strptime.cc
229 (license:non-copyleft
230 "file://src/wcwidth.cc"
231 "See src/wcwidth.cc in the distribution.")
232 license:gpl2+)))) ; lisp/*
234 (define-public geierlein
241 (uri (string-append "https://github.com/stesie/geierlein"
242 "/archive/V" version ".tar.gz"))
243 (file-name (string-append name "-" version ".tar.gz"))
246 "11jfa7mxvvf0ldhx0hsvjbx3xwvzvn2wrfjpms8c7qmrnqhwh4wp"))))
247 (build-system gnu-build-system)
249 `(#:tests? #f ; would require npm, python and a lot more
251 (modify-phases %standard-phases
252 (delete 'configure) ; no configure script
253 (add-after 'unpack 'override-target-directory-and-tool-paths
254 (lambda* (#:key inputs outputs #:allow-other-keys)
255 (substitute* "Makefile"
257 (string-append "prefix := " (assoc-ref outputs "out") "\n"))
258 ;; Required for tests, unused for now:
260 ;; (string-append (which "python") "\n")))
262 (string-append "INSTALL := " (which "install") "\n")))
263 (substitute* "bin/xgeierlein.in"
264 ;; Use icecat as XULRUNNER
266 (string-append "XULRUNNER=" (which "icecat") "\n"
270 `(("icecat" ,icecat)))
271 (home-page "https://stesie.github.io/geierlein/")
272 (synopsis "Free Elster client, for sending Germany VAT declarations")
274 "Geierlein is a free Elster client, i.e. an application that
275 allows to send VAT declarations to Germany's fiscal authorities.
277 Currently it is *not* possible to send returns that are due annually
278 (especially the income tax return) since the fiscal authority doesn't
279 allow to do that off the ERiC library (which is proprietary however).
280 It's not clear at the moment whether one day it will be possible to
282 (license license:agpl3+)))
284 (define-public electrum
291 (uri (string-append "https://download.electrum.org/"
296 "1fxaxlf5vm2zydj678ls3pazyriym188iwzk60kyk26cz2p3xk39"))
297 (modules '((guix build utils)))
300 ;; Delete the bundled dependencies.
301 (delete-file-recursively "packages")
303 (build-system python-build-system)
305 `(("python-pyaes" ,python-pyaes)
306 ("python-pysocks" ,python-pysocks)
307 ("python-sip" ,python-sip)
308 ("python-pyqt" ,python-pyqt)
309 ("python-ecdsa" ,python-ecdsa)
310 ("python-pbkdf2" ,python-pbkdf2)
311 ("python-requests" ,python-requests)
312 ("python-qrcode" ,python-qrcode)
313 ("python-protobuf" ,python-protobuf)
314 ("python-dnspython" ,python-dnspython)
315 ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
317 `(#:tests? #f ;; package doesn't have any tests
319 (modify-phases %standard-phases
320 (add-before 'build 'patch-home
321 (lambda* (#:key outputs #:allow-other-keys)
322 (substitute* "setup.py"
324 (string-append (assoc-ref outputs "out") "/local/share"))))))))
325 (home-page "https://electrum.org/")
326 (synopsis "Bitcoin wallet")
328 "Electrum is a lightweight Bitcoin client, based on a client-server
329 protocol. It supports Simple Payment Verification (SPV) and deterministic key
330 generation from a seed. Your secret keys are encrypted and are never sent to
331 other machines/servers. Electrum does not download the Bitcoin blockchain.")
332 (license license:expat)))
334 (define-public electron-cash
337 (name "electron-cash")
342 (uri (string-append "https://electroncash.org/downloads/"
344 "/win-linux/ElectronCash-"
349 "1x487hyacdm1qhik1mhfimr4jwcwz7sgsbkh11awrb6j19sxdxym"))
350 (modules '((guix build utils)))
353 ;; Delete the bundled dependencies.
354 (delete-file-recursively "packages")
356 (home-page "https://electroncash.org/")
357 (synopsis "Bitcoin Cash wallet")
359 "Electroncash is a lightweight Bitcoin Cash client, based on a client-server
360 protocol. It supports Simple Payment Verification (SPV) and deterministic key
361 generation from a seed. Your secret keys are encrypted and are never sent to
362 other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.")
363 (license license:expat)))
365 (define-public monero
366 ;; This package bundles easylogging++ and lmdb.
367 ;; The bundled easylogging++ is modified, and the changes will not be upstreamed.
368 ;; The devs deem the lmdb driver too critical a consenus component, to use
369 ;; the system's dynamically linked library.
377 (url "https://github.com/monero-project/monero")
378 (commit (string-append "v" version))))
379 (file-name (string-append name "-" version ".tar.gz"))
380 (patches (search-patches "monero-use-system-miniupnpc.patch"))
383 "14db9kgjm2ha93c2x5fjdw01xaqshn756qr3x2cnzyyjh7caz5qd"))))
384 (build-system cmake-build-system)
386 `(("doxygen" ,doxygen)
387 ("googletest" ,googletest)
388 ("graphviz" ,graphviz)
389 ("pkg-config" ,pkg-config)))
396 ("libsodium" ,libsodium)
397 ("libunwind" ,libunwind)
399 ("miniupnpc" ,monero-miniupnpc)
401 ("rapidjson" ,rapidjson)
402 ("unbound" ,unbound)))
404 `(#:out-of-source? #t
405 #:build-type "release"
406 #:configure-flags '("-DBUILD_TESTS=ON"
407 ,@(if (string=? "aarch64-linux" (%current-system))
410 "-DBUILD_GUI_DEPS=ON")
412 (modify-phases %standard-phases
413 ;; tests/core_tests need a valid HOME
414 (add-before 'configure 'set-home
416 (setenv "HOME" (getcwd))
418 (add-after 'set-home 'fix-wallet-path-for-unit-tests
420 (substitute* "tests/unit_tests/serialization.cpp"
421 (("\\.\\./\\.\\./\\.\\./\\.\\./") "../../"))
423 (add-after 'fix-wallet-path-for-unit-tests 'change-log-path
425 (substitute* "contrib/epee/src/mlog.cpp"
426 (("epee::string_tools::get_current_module_folder\\(\\)")
428 (substitute* "contrib/epee/src/mlog.cpp"
429 (("return \\(") "return ((std::string(getenv(\"HOME\"))) / "))
433 (invoke "make" "ARGS=-E 'unit_tests|libwallet_api_tests'"
435 ;; The excluded unit tests need network access
436 (add-after 'check 'unit-tests
438 (let ((excluded-unit-tests
440 '("AddressFromURL.Success"
441 "AddressFromURL.Failure"
442 "DNSResolver.IPv4Success"
443 "DNSResolver.DNSSECSuccess"
444 "DNSResolver.DNSSECFailure"
445 "DNSResolver.GetTXTRecord")
447 (invoke "tests/unit_tests/unit_tests"
448 (string-append "--gtest_filter=-"
449 excluded-unit-tests)))))
450 (add-after 'install 'install-blockchain-import-export
451 (lambda* (#:key outputs #:allow-other-keys)
452 (let* ((out (assoc-ref outputs "out"))
453 (bin (string-append out "/bin")))
454 (install-file "bin/monero-blockchain-import" bin)
455 (install-file "bin/monero-blockchain-export" bin)))))))
456 (home-page "https://getmonero.org/")
457 (synopsis "Command-line interface to the Monero currency")
459 "Monero is a secure, private, untraceable currency. This package provides the
460 Monero command line client and daemon.")
461 (license license:bsd-3)))
463 (define-public monero-gui
471 (url "https://github.com/monero-project/monero-gui")
472 (commit (string-append "v" version))))
473 (file-name (string-append name "-" version ".tar.gz"))
476 "1cnrkwh7kp64lnzz1xfmkf1mhsgm5gls292gpqai3jr8jydpkahl"))))
477 (build-system gnu-build-system)
479 `(("doxygen" ,doxygen)
480 ("graphviz" ,graphviz)
481 ("pkg-config" ,pkg-config)))
484 ("libunwind" ,libunwind)
487 ("readline" ,readline)
488 ("unbound" ,unbound)))
490 `(("monero" ,monero)))
493 (modify-phases %standard-phases
496 (add-before 'build 'fix-makefile-vars
498 (substitute* "src/zxcvbn-c/makefile"
501 (add-after 'fix-makefile-vars 'fix-library-paths
502 (lambda* (#:key inputs #:allow-other-keys)
503 (substitute* "monero-wallet-gui.pro"
504 (("-L/usr/local/lib") "")
505 (("-L/usr/local/opt/openssl/lib")
507 (assoc-ref inputs "openssl")
509 (("-L/usr/local/opt/boost/lib")
511 (assoc-ref inputs "boost")
514 (add-after 'fix-library-paths 'fix-monerod-path
515 (lambda* (#:key inputs #:allow-other-keys)
516 (substitute* "src/daemon/DaemonManager.cpp"
517 (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod")
518 (string-append "\""(assoc-ref inputs "monero")
523 (invoke "./build.sh")))
524 (add-after 'build 'fix-install-path
525 (lambda* (#:key outputs #:allow-other-keys)
526 (substitute* "build/Makefile"
527 (("/opt/monero-wallet-gui")
528 (assoc-ref outputs "out")))
530 (add-before 'install 'change-dir
533 (home-page "https://getmonero.org/")
534 (synopsis "Graphical user interface for the Monero currency")
536 "Monero is a secure, private, untraceable currency. This package provides the
538 (license license:bsd-3)))
540 (define-public monero-core
541 (deprecated-package "monero-core" monero-gui))
543 (define-public python-trezor-agent
545 (name "python-trezor-agent")
550 (uri (string-append "https://github.com/romanz/trezor-agent/archive/v"
552 (file-name (string-append name "-" version ".tar.gz"))
555 "0h8jb147vpjk7mqbl4za0xdh7lblhx07n9dfk80kn2plwnvrry1x"))))
556 (build-system python-build-system)
559 (modify-phases %standard-phases
561 (add-after 'install 'check
562 (lambda* (#:key outputs inputs #:allow-other-keys)
563 ;; Make installed package available for running the tests
564 (add-installed-pythonpath inputs outputs)
565 (invoke "py.test"))))))
567 `(("python-ecdsa" ,python-ecdsa)
568 ("python-ed25519" ,python-ed25519)
569 ("python-semver" ,python-semver)
570 ("python-unidecode" ,python-unidecode)))
572 `(("python-mock" ,python-mock)
573 ("python-pytest" ,python-pytest)))
574 (home-page "https://github.com/romanz/trezor-agent")
575 (synopsis "TREZOR SSH and GPG host support")
577 "@code{libagent} is a library that allows using TREZOR, Keepkey and
578 Ledger Nano as a hardware SSH/GPG agent.")
579 (license license:lgpl3)))
581 (define-public python2-trezor-agent
582 (package-with-python2 python-trezor-agent))
584 (define-public python-mnemonic
586 (name "python-mnemonic")
591 (uri (pypi-uri "mnemonic" version))
594 "07bzfa5di6nv5xwwcwbypnflpj50wlfczhh6q6hg8w13g5m319q2"))))
595 (build-system python-build-system)
597 `(("python-pbkdf2" ,python-pbkdf2)))
598 (home-page "https://github.com/trezor/python-mnemonic")
599 (synopsis "Implementation of Bitcoin BIP-0039")
600 (description "@code{mnemonic} is a library that provides an implementation
601 of Bitcoin BIP-0039.")
602 (license license:expat)))
604 (define-public python2-mnemonic
605 (package-with-python2 python-mnemonic))
607 (define-public python-ledgerblue
609 (name "python-ledgerblue")
614 (uri (pypi-uri "ledgerblue" version))
617 "010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb"))))
618 (build-system python-build-system)
620 `(("python-ecpy" ,python-ecpy)
621 ("python-future" ,python-future)
622 ("python-hidapi" ,python-hidapi)
623 ("python-pillow" ,python-pillow)
624 ("python-protobuf" ,python-protobuf)
625 ("python-pycrypto" ,python-pycrypto)))
626 (home-page "https://github.com/LedgerHQ/blue-loader-python")
627 (synopsis "Python library to communicate with Ledger Blue/Nano S")
628 (description "@code{ledgerblue} is a Python library to communicate with
629 Ledger Blue/Nano S.")
630 (license license:asl2.0)))
632 (define-public python2-ledgerblue
633 (package-with-python2 python-ledgerblue))
635 (define-public python-trezor
637 (name "python-trezor")
642 (uri (pypi-uri "trezor" version))
645 "055kii56wgwadl5z911s59ya2fnsqzk3n5i19s2hb9sv2by6knvb"))))
646 (build-system python-build-system)
648 `(("python-ecdsa" ,python-ecdsa)
649 ("python-hidapi" ,python-hidapi)
650 ("python-mnemonic" ,python-mnemonic)
651 ("python-protobuf" ,python-protobuf)
652 ("python-requests" ,python-requests)))
654 `(("python-pyqt" ,python-pyqt))) ; Tests
655 (home-page "https://github.com/trezor/python-trezor")
656 (synopsis "Python library for communicating with TREZOR Hardware Wallet")
657 (description "@code{trezor} is a Python library for communicating with
658 TREZOR Hardware Wallet.")
659 (license license:lgpl3)))
661 (define-public python2-trezor
662 (package-with-python2 python-trezor))
664 (define-public python-keepkey
666 (name "python-keepkey")
671 (uri (pypi-uri "keepkey" version))
674 "0f4iqqjlqmamw4mhyhik4qlb5bnfd10wbjw9yzgir105wh5fdpnd"))))
675 (build-system python-build-system)
678 (modify-phases %standard-phases
680 (add-after 'install 'check
681 (lambda* (#:key inputs outputs #:allow-other-keys)
682 (add-installed-pythonpath inputs outputs)
683 (apply invoke "python" (find-files "tests/unit" "\\.py$")))))))
685 `(("python-ecdsa" ,python-ecdsa)
686 ("python-hidapi" ,python-hidapi)
687 ("python-mnemonic" ,python-mnemonic)
688 ("python-protobuf" ,python-protobuf)))
689 (home-page "https://github.com/keepkey/python-keepkey")
690 (synopsis "Python library for communicating with KeepKey Hardware Wallet")
691 (description "@code{keepkey} is a Python library for communicating with
692 the KeepKey Hardware Wallet.")
693 (license license:lgpl3)))
695 (define-public python2-keepkey
696 (package-with-python2 python-keepkey))
698 (define-public ledger-agent
700 (name "ledger-agent")
705 (uri (pypi-uri "ledger_agent" version))
708 "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92"))))
709 (build-system python-build-system)
711 `(("python-ledgerblue" ,python-ledgerblue)
712 ("python-trezor-agent" ,python-trezor-agent)))
713 (home-page "http://github.com/romanz/trezor-agent")
714 (synopsis "Ledger as hardware SSH/GPG agent")
715 (description "This package allows using Ledger as hardware SSH/GPG agent.
717 Usage for SSH: trezor-agent foo@@example.com --connect
718 Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\"
719 Then set the environment variable GNUPGHOME to
720 \"${HOME}/.gnupg/trezor\".")
721 (license license:lgpl3)))
723 (define-public trezor-agent
725 (name "trezor-agent")
730 (uri (pypi-uri "trezor_agent" version))
733 "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz"))))
734 (build-system python-build-system)
736 `(("python-trezor" ,python-trezor)
737 ("python-trezor-agent" ,python-trezor-agent)))
738 (home-page "http://github.com/romanz/trezor-agent")
739 (synopsis "Using Trezor as hardware SSH/GPG agent")
740 (description "This package allows using Trezor as a hardware SSH/GPG
742 (license license:lgpl3)))
744 (define-public keepkey-agent
746 (name "keepkey-agent")
751 (uri (pypi-uri "keepkey_agent" version))
754 "03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27"))))
755 (build-system python-build-system)
757 `(("python-keepkey" ,python-keepkey)
758 ("python-trezor-agent" ,python-trezor-agent)))
759 (home-page "http://github.com/romanz/trezor-agent")
760 (synopsis "KeepKey as hardware SSH/GPG agent")
761 (description "This package allows using KeepKey as a hardware SSH/GPG
763 (license license:lgpl3)))
765 (define-public python-stdnum
767 (name "python-stdnum")
772 (uri (pypi-uri "python-stdnum" version))
775 "0hvr47q32xbyiznpmbg4r8rcvxhnf0lwf33hcpnynyik57djy5np"))))
776 (build-system python-build-system)
778 "https://arthurdejong.org/python-stdnum/")
780 "Python module to handle standardized number and code formats")
782 "This is a Python library that aims to provide functions to handle,
783 parse and validate standard numbers.
784 The module supports more than 100 different number formats
785 amongst which a great number of VAT and other tax numbers,
786 personal identity and company identification codes,
787 international standard numbers (ISBN, IBAN, EAN, etc.)
788 and various other formats.
789 The module also inclused implementations of the Verhoeff,
790 Luhn and family of ISO/IEC 7064 check digit algorithms. ")
791 (license license:lgpl2.1+)))
793 (define-public python2-stdnum
794 (package-with-python2 python-stdnum))
796 (define-public python-duniterpy
798 (name "python-duniterpy")
803 ;; Pypi's default URI is missing "requirements.txt" file.
805 (url "https://github.com/duniter/duniter-python-api.git")
807 (file-name (git-file-name name version))
810 "1ch4f150k1p1l876pp08p5rxqhpv5xfbxdw6njcmr06hspv8v8x4"))))
811 (build-system python-build-system)
814 (modify-phases %standard-phases
815 ;; Among 108 tests, a single one is failing: FAIL:
816 ;; test_from_pubkey. Remove it.
817 (add-after 'unpack 'remove-failing-test
819 (delete-file "tests/documents/test_crc_pubkey.py")
822 `(("python-aiohttp" ,python-aiohttp)
823 ("python-base58" ,python-base58)
824 ("python-jsonschema" ,python-jsonschema)
825 ("python-libnacl" ,python-libnacl)
826 ("python-pylibscrypt" ,python-pylibscrypt)
827 ("python-pypeg2" ,python-pypeg2)))
828 (home-page "https://github.com/duniter/duniter-python-api")
829 (synopsis "Python implementation of Duniter API")
830 (description "@code{duniterpy} is an implementation of
831 @uref{https://github.com/duniter/duniter/, duniter} API. Its
834 @item Supports Duniter's Basic Merkle API and protocol
836 @item Duniter signing key
838 (license license:gpl3+)))
840 (define-public silkaj
848 (url "https://git.duniter.org/clients/python/silkaj.git")
849 (commit (string-append "v" version))))
850 (file-name (git-file-name name version))
853 "0xy25lpgz04nxikjvxlnlckrc9xmsxyiz2qm0bsiid8cnbdqcn12"))))
854 (build-system python-build-system)
856 `(#:tests? #f ;no test
858 (modify-phases %standard-phases
859 ;; The program is just a bunch of Python files in "src/" directory.
860 ;; Many phases are useless. However, `python-build-system' correctly
861 ;; sets PYTHONPATH and patches Python scripts.
865 (lambda* (#:key outputs #:allow-other-keys)
866 (let* ((out (assoc-ref outputs "out"))
867 (share (string-append out "/share/silkaj"))
868 (executable (string-append share "/silkaj.py"))
869 (bin (string-append out "/bin")))
871 (copy-recursively "src" share)
872 ;; Install executable.
874 (with-directory-excursion bin
875 (symlink executable "silkaj")))
878 `(("python-commandlines" ,python-commandlines)
879 ("python-ipaddress" ,python-ipaddress)
880 ("python-pyaes" ,python-pyaes)
881 ("python-pynacl" ,python-pynacl)
882 ("python-scrypt" ,python-scrypt)
883 ("python-tabulate" ,python-tabulate)))
884 (home-page "https://silkaj.duniter.org/")
885 (synopsis "Command line client for Duniter network")
886 (description "@code{Silkaj} is a command line client for the
887 @uref{https://github.com/duniter/duniter/, Duniter} network.
891 @item information about currency,
892 @item issuers difficulty to generate next block,
893 @item network view of nodes,
894 @item list of last issuers,
895 @item send transactions,
896 @item get account amount.
898 (license license:agpl3+)))