1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2016, 2017, 2018 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-after 'unpack 'boost-compat
170 (substitute* "src/utils.h"
171 ;; This library moved in Boost 1.66. Remove for Ledger
173 (("boost/uuid/sha1.hpp") "boost/uuid/detail/sha1.hpp"))
175 (add-before 'configure 'install-examples
176 (lambda* (#:key outputs #:allow-other-keys)
177 (let ((examples (string-append (assoc-ref outputs "out")
178 "/share/doc/ledger/examples")))
179 (install-file "test/input/sample.dat" examples)
180 (install-file "test/input/demo.ledger" examples))
182 (add-after 'build 'build-doc
183 (lambda _ (invoke "make" "doc")))
184 (add-before 'check 'check-setup
185 ;; One test fails if it can't set the timezone.
186 (lambda* (#:key inputs #:allow-other-keys)
188 (string-append (assoc-ref inputs "tzdata")
191 (replace 'check (assoc-ref gnu:%standard-phases 'check))
192 (add-after 'install 'relocate-elisp
193 (lambda* (#:key outputs #:allow-other-keys)
194 (let* ((site-dir (string-append (assoc-ref outputs "out")
195 "/share/emacs/site-lisp"))
196 (guix-dir (string-append site-dir "/guix.d"))
197 (orig-dir (string-append site-dir "/ledger-mode"))
198 (dest-dir (string-append guix-dir "/ledger-mode")))
200 (rename-file orig-dir dest-dir)
201 (emacs-generate-autoloads ,name dest-dir)))))))
211 `(("emacs" ,emacs-minimal)
213 ("texinfo" ,texinfo)))
214 (home-page "https://ledger-cli.org/")
215 (synopsis "Command-line double-entry accounting program")
217 "Ledger is a powerful, double-entry accounting system that is
218 accessed from the UNIX command-line. This may put off some users, since
219 there is no flashy UI, but for those who want unparalleled reporting
220 access to their data there are few alternatives.
222 Ledger uses text files for input. It reads the files and generates
223 reports; there is no other database or stored state. To use Ledger,
224 you create a file of your account names and transactions, run from the
225 command line with some options to specify input and requested reports, and
226 get output. The output is generally plain text, though you could generate
227 a graph or html instead. Ledger is simple in concept, surprisingly rich
228 in ability, and easy to use.")
229 ;; There are some extra licenses in files which do not presently get
230 ;; installed when you build this package. Different versions of the GPL
231 ;; are used in the contrib and python subdirectories. The bundled version
232 ;; of utfcpp is under the Boost 1.0 license. Also the file
233 ;; `tools/update_copyright_year` has an Expat license.
234 (license (list license:bsd-3
235 license:asl2.0 ; src/strptime.cc
236 (license:non-copyleft
237 "file://src/wcwidth.cc"
238 "See src/wcwidth.cc in the distribution.")
239 license:gpl2+)))) ; lisp/*
241 (define-public geierlein
248 (uri (string-append "https://github.com/stesie/geierlein"
249 "/archive/V" version ".tar.gz"))
250 (file-name (string-append name "-" version ".tar.gz"))
253 "11jfa7mxvvf0ldhx0hsvjbx3xwvzvn2wrfjpms8c7qmrnqhwh4wp"))))
254 (build-system gnu-build-system)
256 `(#:tests? #f ; would require npm, python and a lot more
258 (modify-phases %standard-phases
259 (delete 'configure) ; no configure script
260 (add-after 'unpack 'override-target-directory-and-tool-paths
261 (lambda* (#:key inputs outputs #:allow-other-keys)
262 (substitute* "Makefile"
264 (string-append "prefix := " (assoc-ref outputs "out") "\n"))
265 ;; Required for tests, unused for now:
267 ;; (string-append (which "python") "\n")))
269 (string-append "INSTALL := " (which "install") "\n")))
270 (substitute* "bin/xgeierlein.in"
271 ;; Use icecat as XULRUNNER
273 (string-append "XULRUNNER=" (which "icecat") "\n"
277 `(("icecat" ,icecat)))
278 (home-page "https://stesie.github.io/geierlein/")
279 (synopsis "Free Elster client, for sending Germany VAT declarations")
281 "Geierlein is a free Elster client, i.e. an application that
282 allows to send VAT declarations to Germany's fiscal authorities.
284 Currently it is *not* possible to send returns that are due annually
285 (especially the income tax return) since the fiscal authority doesn't
286 allow to do that off the ERiC library (which is proprietary however).
287 It's not clear at the moment whether one day it will be possible to
289 (license license:agpl3+)))
291 (define-public electrum
298 (uri (string-append "https://download.electrum.org/"
303 "1fxaxlf5vm2zydj678ls3pazyriym188iwzk60kyk26cz2p3xk39"))
304 (modules '((guix build utils)))
307 ;; Delete the bundled dependencies.
308 (delete-file-recursively "packages")
310 (build-system python-build-system)
312 `(("python-pyaes" ,python-pyaes)
313 ("python-pysocks" ,python-pysocks)
314 ("python-sip" ,python-sip)
315 ("python-pyqt" ,python-pyqt)
316 ("python-ecdsa" ,python-ecdsa)
317 ("python-pbkdf2" ,python-pbkdf2)
318 ("python-requests" ,python-requests)
319 ("python-qrcode" ,python-qrcode)
320 ("python-protobuf" ,python-protobuf)
321 ("python-dnspython" ,python-dnspython)
322 ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
324 `(#:tests? #f ;; package doesn't have any tests
326 (modify-phases %standard-phases
327 (add-before 'build 'patch-home
328 (lambda* (#:key outputs #:allow-other-keys)
329 (substitute* "setup.py"
331 (string-append (assoc-ref outputs "out") "/local/share"))))))))
332 (home-page "https://electrum.org/")
333 (synopsis "Bitcoin wallet")
335 "Electrum is a lightweight Bitcoin client, based on a client-server
336 protocol. It supports Simple Payment Verification (SPV) and deterministic key
337 generation from a seed. Your secret keys are encrypted and are never sent to
338 other machines/servers. Electrum does not download the Bitcoin blockchain.")
339 (license license:expat)))
341 (define-public electron-cash
344 (name "electron-cash")
349 (uri (string-append "https://electroncash.org/downloads/"
351 "/win-linux/ElectronCash-"
356 "1jdy89rfdwc2jadx3rqj5yvynpcn90cx6482ax9f1cj9gfxp9j2b"))
357 (modules '((guix build utils)))
360 ;; Delete the bundled dependencies.
361 (delete-file-recursively "packages")
363 (home-page "https://electroncash.org/")
364 (synopsis "Bitcoin Cash wallet")
366 "Electroncash is a lightweight Bitcoin Cash client, based on a client-server
367 protocol. It supports Simple Payment Verification (SPV) and deterministic key
368 generation from a seed. Your secret keys are encrypted and are never sent to
369 other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.")
370 (license license:expat)))
372 (define-public monero
373 ;; This package bundles easylogging++ and lmdb.
374 ;; The bundled easylogging++ is modified, and the changes will not be upstreamed.
375 ;; The devs deem the lmdb driver too critical a consenus component, to use
376 ;; the system's dynamically linked library.
384 (url "https://github.com/monero-project/monero")
385 (commit (string-append "v" version))))
386 (file-name (git-file-name name version))
387 (patches (search-patches "monero-use-system-miniupnpc.patch"))
390 "14db9kgjm2ha93c2x5fjdw01xaqshn756qr3x2cnzyyjh7caz5qd"))))
391 (build-system cmake-build-system)
393 `(("doxygen" ,doxygen)
394 ("googletest" ,googletest)
395 ("graphviz" ,graphviz)
396 ("pkg-config" ,pkg-config)))
403 ("libsodium" ,libsodium)
404 ("libunwind" ,libunwind)
406 ("miniupnpc" ,monero-miniupnpc)
408 ("rapidjson" ,rapidjson)
409 ("unbound" ,unbound)))
411 `(#:out-of-source? #t
412 #:build-type "release"
413 #:configure-flags '("-DBUILD_TESTS=ON"
414 ,@(if (string=? "aarch64-linux" (%current-system))
417 "-DBUILD_GUI_DEPS=ON")
419 (modify-phases %standard-phases
420 ;; tests/core_tests need a valid HOME
421 (add-before 'configure 'set-home
423 (setenv "HOME" (getcwd))
425 (add-after 'set-home 'fix-wallet-path-for-unit-tests
427 (substitute* "tests/unit_tests/serialization.cpp"
428 (("\\.\\./\\.\\./\\.\\./\\.\\./") "../../"))
430 (add-after 'fix-wallet-path-for-unit-tests 'change-log-path
432 (substitute* "contrib/epee/src/mlog.cpp"
433 (("epee::string_tools::get_current_module_folder\\(\\)")
435 (substitute* "contrib/epee/src/mlog.cpp"
436 (("return \\(") "return ((std::string(getenv(\"HOME\"))) / "))
440 (invoke "make" "ARGS=-E 'unit_tests|libwallet_api_tests'"
442 ;; The excluded unit tests need network access
443 (add-after 'check 'unit-tests
445 (let ((excluded-unit-tests
447 '("AddressFromURL.Success"
448 "AddressFromURL.Failure"
449 "DNSResolver.IPv4Success"
450 "DNSResolver.DNSSECSuccess"
451 "DNSResolver.DNSSECFailure"
452 "DNSResolver.GetTXTRecord")
454 (invoke "tests/unit_tests/unit_tests"
455 (string-append "--gtest_filter=-"
456 excluded-unit-tests)))))
457 (add-after 'install 'install-blockchain-import-export
458 (lambda* (#:key outputs #:allow-other-keys)
459 (let* ((out (assoc-ref outputs "out"))
460 (bin (string-append out "/bin")))
461 (install-file "bin/monero-blockchain-import" bin)
462 (install-file "bin/monero-blockchain-export" bin)))))))
463 (home-page "https://getmonero.org/")
464 (synopsis "Command-line interface to the Monero currency")
466 "Monero is a secure, private, untraceable currency. This package provides the
467 Monero command line client and daemon.")
468 (license license:bsd-3)))
470 (define-public monero-gui
478 (url "https://github.com/monero-project/monero-gui")
479 (commit (string-append "v" version))))
480 (file-name (git-file-name name version))
483 "1cnrkwh7kp64lnzz1xfmkf1mhsgm5gls292gpqai3jr8jydpkahl"))))
484 (build-system gnu-build-system)
486 `(("doxygen" ,doxygen)
487 ("graphviz" ,graphviz)
488 ("pkg-config" ,pkg-config)
489 ("qttools" ,qttools)))
492 ("libunwind" ,libunwind)
495 ("qtdeclarative" ,qtdeclarative)
496 ("qtgraphicaleffects" ,qtgraphicaleffects)
497 ("qtquickcontrols" ,qtquickcontrols)
498 ("readline" ,readline)
499 ("unbound" ,unbound)))
501 `(("monero" ,monero)))
504 (modify-phases %standard-phases
507 (add-before 'build 'fix-makefile-vars
509 (substitute* "src/zxcvbn-c/makefile"
512 (add-after 'fix-makefile-vars 'fix-library-paths
513 (lambda* (#:key inputs #:allow-other-keys)
514 (substitute* "monero-wallet-gui.pro"
515 (("-L/usr/local/lib") "")
516 (("-L/usr/local/opt/openssl/lib")
518 (assoc-ref inputs "openssl")
520 (("-L/usr/local/opt/boost/lib")
522 (assoc-ref inputs "boost")
525 (add-after 'fix-library-paths 'fix-monerod-path
526 (lambda* (#:key inputs #:allow-other-keys)
527 (substitute* "src/daemon/DaemonManager.cpp"
528 (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod")
529 (string-append "\""(assoc-ref inputs "monero")
532 (add-after 'fix-monerod-path 'fix-qt-paths
533 (lambda* (#:key inputs #:allow-other-keys)
534 (let* ((qttools (assoc-ref inputs "qttools"))
535 (lrelease (string-append qttools "/bin/lrelease"))
536 (lupdate (string-append qttools "/bin/lupdate")))
537 (substitute* "monero-wallet-gui.pro"
538 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") lrelease)
539 (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate") lupdate))
543 (invoke "./build.sh")))
544 (add-after 'build 'fix-install-path
545 (lambda* (#:key outputs #:allow-other-keys)
546 (substitute* "build/Makefile"
547 (("/opt/monero-wallet-gui")
548 (assoc-ref outputs "out")))
550 (add-before 'install 'change-dir
553 (add-after 'install 'wrap-executable
554 (lambda* (#:key inputs outputs #:allow-other-keys)
555 (let ((out (assoc-ref outputs "out")))
556 (wrap-program (string-append out "/bin/monero-wallet-gui")
557 `("QT_PLUGIN_PATH" ":" prefix
558 ,(map (lambda (label)
559 (string-append (assoc-ref inputs label)
561 '("qtbase" "qtdeclarative")))
562 `("QML2_IMPORT_PATH" ":" prefix
563 ,(map (lambda (label)
564 (string-append (assoc-ref inputs label)
566 '("qtdeclarative" "qtgraphicaleffects"
567 "qtquickcontrols"))))
569 (home-page "https://getmonero.org/")
570 (synopsis "Graphical user interface for the Monero currency")
572 "Monero is a secure, private, untraceable currency. This package provides the
574 (license license:bsd-3)))
576 (define-public monero-core
577 (deprecated-package "monero-core" monero-gui))
579 (define-public python-trezor-agent
581 (name "python-trezor-agent")
586 (uri (string-append "https://github.com/romanz/trezor-agent/archive/v"
588 (file-name (string-append name "-" version ".tar.gz"))
591 "0h8jb147vpjk7mqbl4za0xdh7lblhx07n9dfk80kn2plwnvrry1x"))))
592 (build-system python-build-system)
595 (modify-phases %standard-phases
597 (add-after 'install 'check
598 (lambda* (#:key outputs inputs #:allow-other-keys)
599 ;; Make installed package available for running the tests
600 (add-installed-pythonpath inputs outputs)
601 (invoke "py.test"))))))
603 `(("python-ecdsa" ,python-ecdsa)
604 ("python-ed25519" ,python-ed25519)
605 ("python-semver" ,python-semver)
606 ("python-unidecode" ,python-unidecode)))
608 `(("python-mock" ,python-mock)
609 ("python-pytest" ,python-pytest)))
610 (home-page "https://github.com/romanz/trezor-agent")
611 (synopsis "TREZOR SSH and GPG host support")
613 "@code{libagent} is a library that allows using TREZOR, Keepkey and
614 Ledger Nano as a hardware SSH/GPG agent.")
615 (license license:lgpl3)))
617 (define-public python2-trezor-agent
618 (package-with-python2 python-trezor-agent))
620 (define-public python-mnemonic
622 (name "python-mnemonic")
627 (uri (pypi-uri "mnemonic" version))
630 "07bzfa5di6nv5xwwcwbypnflpj50wlfczhh6q6hg8w13g5m319q2"))))
631 (build-system python-build-system)
633 `(("python-pbkdf2" ,python-pbkdf2)))
634 (home-page "https://github.com/trezor/python-mnemonic")
635 (synopsis "Implementation of Bitcoin BIP-0039")
636 (description "@code{mnemonic} is a library that provides an implementation
637 of Bitcoin BIP-0039.")
638 (license license:expat)))
640 (define-public python2-mnemonic
641 (package-with-python2 python-mnemonic))
643 (define-public python-ledgerblue
645 (name "python-ledgerblue")
650 (uri (pypi-uri "ledgerblue" version))
653 "010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb"))))
654 (build-system python-build-system)
656 `(("python-ecpy" ,python-ecpy)
657 ("python-future" ,python-future)
658 ("python-hidapi" ,python-hidapi)
659 ("python-pillow" ,python-pillow)
660 ("python-protobuf" ,python-protobuf)
661 ("python-pycrypto" ,python-pycrypto)))
662 (home-page "https://github.com/LedgerHQ/blue-loader-python")
663 (synopsis "Python library to communicate with Ledger Blue/Nano S")
664 (description "@code{ledgerblue} is a Python library to communicate with
665 Ledger Blue/Nano S.")
666 (license license:asl2.0)))
668 (define-public python2-ledgerblue
669 (package-with-python2 python-ledgerblue))
671 (define-public python-trezor
673 (name "python-trezor")
678 (uri (pypi-uri "trezor" version))
681 "138k6zsqqpb46k3rcpyslm9q7yq5i6k4myvr9n425jnkadf4vfjd"))))
682 (build-system python-build-system)
685 (modify-phases %standard-phases
686 ;; Default tests run device-specific tests which fail, only run specific tests.
688 (lambda* (#:key inputs outputs #:allow-other-keys)
689 (invoke "python" "-m" "pytest" "--pyarg" "trezorlib.tests.unit_tests")
690 (invoke "python" "-m" "pytest" "-m" "slow_cosi" "--pyarg" "trezorlib.tests.unit_tests")
693 `(("python-click" ,python-click)
694 ("python-ecdsa" ,python-ecdsa)
695 ("python-hidapi" ,python-hidapi)
696 ("python-libusb1" ,python-libusb1)
697 ("python-mnemonic" ,python-mnemonic)
698 ("python-protobuf" ,python-protobuf)
699 ("python-pyblake2" ,python-pyblake2)
700 ("python-requests" ,python-requests)
701 ("python-typing" ,python-typing)))
703 `(("python-mock" ,python-mock) ; Tests
704 ("python-pyqt" ,python-pyqt) ; Tests
705 ("python-pytest" ,python-pytest))) ; Tests
706 (home-page "https://github.com/trezor/python-trezor")
707 (synopsis "Python library for communicating with TREZOR Hardware Wallet")
708 (description "@code{trezor} is a Python library for communicating with
709 TREZOR Hardware Wallet.")
710 (license license:lgpl3)))
712 (define-public python2-trezor
713 (package-with-python2 python-trezor))
715 (define-public python-keepkey
717 (name "python-keepkey")
722 (uri (pypi-uri "keepkey" version))
725 "0f4iqqjlqmamw4mhyhik4qlb5bnfd10wbjw9yzgir105wh5fdpnd"))))
726 (build-system python-build-system)
729 (modify-phases %standard-phases
731 (add-after 'install 'check
732 (lambda* (#:key inputs outputs #:allow-other-keys)
733 (add-installed-pythonpath inputs outputs)
734 (apply invoke "python" (find-files "tests/unit" "\\.py$")))))))
736 `(("python-ecdsa" ,python-ecdsa)
737 ("python-hidapi" ,python-hidapi)
738 ("python-mnemonic" ,python-mnemonic)
739 ("python-protobuf" ,python-protobuf)))
740 (home-page "https://github.com/keepkey/python-keepkey")
741 (synopsis "Python library for communicating with KeepKey Hardware Wallet")
742 (description "@code{keepkey} is a Python library for communicating with
743 the KeepKey Hardware Wallet.")
744 (license license:lgpl3)))
746 (define-public python2-keepkey
747 (package-with-python2 python-keepkey))
749 (define-public ledger-agent
751 (name "ledger-agent")
756 (uri (pypi-uri "ledger_agent" version))
759 "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92"))))
760 (build-system python-build-system)
762 `(("python-ledgerblue" ,python-ledgerblue)
763 ("python-trezor-agent" ,python-trezor-agent)))
764 (home-page "http://github.com/romanz/trezor-agent")
765 (synopsis "Ledger as hardware SSH/GPG agent")
766 (description "This package allows using Ledger as hardware SSH/GPG agent.
768 Usage for SSH: trezor-agent foo@@example.com --connect
769 Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\"
770 Then set the environment variable GNUPGHOME to
771 \"${HOME}/.gnupg/trezor\".")
772 (license license:lgpl3)))
774 (define-public trezor-agent
776 (name "trezor-agent")
781 (uri (pypi-uri "trezor_agent" version))
784 "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz"))))
785 (build-system python-build-system)
787 `(("python-trezor" ,python-trezor)
788 ("python-trezor-agent" ,python-trezor-agent)))
789 (home-page "http://github.com/romanz/trezor-agent")
790 (synopsis "Using Trezor as hardware SSH/GPG agent")
791 (description "This package allows using Trezor as a hardware SSH/GPG
793 (license license:lgpl3)))
795 (define-public keepkey-agent
797 (name "keepkey-agent")
802 (uri (pypi-uri "keepkey_agent" version))
805 "03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27"))))
806 (build-system python-build-system)
808 `(("python-keepkey" ,python-keepkey)
809 ("python-trezor-agent" ,python-trezor-agent)))
810 (home-page "http://github.com/romanz/trezor-agent")
811 (synopsis "KeepKey as hardware SSH/GPG agent")
812 (description "This package allows using KeepKey as a hardware SSH/GPG
814 (license license:lgpl3)))
816 (define-public python-stdnum
818 (name "python-stdnum")
823 (uri (pypi-uri "python-stdnum" version))
826 "0hvr47q32xbyiznpmbg4r8rcvxhnf0lwf33hcpnynyik57djy5np"))))
827 (build-system python-build-system)
829 "https://arthurdejong.org/python-stdnum/")
831 "Python module to handle standardized number and code formats")
833 "This is a Python library that aims to provide functions to handle,
834 parse and validate standard numbers.
835 The module supports more than 100 different number formats
836 amongst which a great number of VAT and other tax numbers,
837 personal identity and company identification codes,
838 international standard numbers (ISBN, IBAN, EAN, etc.)
839 and various other formats.
840 The module also inclused implementations of the Verhoeff,
841 Luhn and family of ISO/IEC 7064 check digit algorithms. ")
842 (license license:lgpl2.1+)))
844 (define-public python2-stdnum
845 (package-with-python2 python-stdnum))
847 (define-public python-duniterpy
849 (name "python-duniterpy")
854 ;; Pypi's default URI is missing "requirements.txt" file.
856 (url "https://git.duniter.org/clients/python/duniterpy.git")
858 (file-name (git-file-name name version))
861 "0f24ihglmzphy30pgc49w0rxmsjc76mgcggg078cfsz7xrrk13gf"))))
862 (build-system python-build-system)
864 ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
867 `(("python-aiohttp" ,python-aiohttp)
868 ("python-attr" ,python-attr)
869 ("python-base58" ,python-base58)
870 ("python-jsonschema" ,python-jsonschema)
871 ("python-libnacl" ,python-libnacl)
872 ("python-pylibscrypt" ,python-pylibscrypt)
873 ("python-pypeg2" ,python-pypeg2)))
874 (home-page "https://git.duniter.org/clients/python/duniterpy")
875 (synopsis "Python implementation of Duniter API")
876 (description "@code{duniterpy} is an implementation of
877 @uref{https://github.com/duniter/duniter/, duniter} API. Its
880 @item Supports Duniter's Basic Merkle API and protocol
882 @item Duniter signing key
884 (license license:gpl3+)))
886 (define-public silkaj
894 (url "https://git.duniter.org/clients/python/silkaj.git")
895 (commit (string-append "v" version))))
896 (file-name (git-file-name name version))
899 "02n028rz1pshgh7w0af3b291r8lwvhzskm1q98d991gr8rscvad2"))))
900 (build-system python-build-system)
902 `(#:tests? #f)) ;no test
904 `(("python-commandlines" ,python-commandlines)
905 ("python-ipaddress" ,python-ipaddress)
906 ("python-pyaes" ,python-pyaes)
907 ("python-pynacl" ,python-pynacl)
908 ("python-scrypt" ,python-scrypt)
909 ("python-tabulate" ,python-tabulate)))
910 (home-page "https://silkaj.duniter.org/")
911 (synopsis "Command line client for Duniter network")
912 (description "@code{Silkaj} is a command line client for the
913 @uref{https://github.com/duniter/duniter/, Duniter} network.
917 @item information about currency,
918 @item issuers difficulty to generate next block,
919 @item network view of nodes,
920 @item list of last issuers,
921 @item send transactions,
922 @item get account amount.
924 (license license:agpl3+)))