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, 2018, 2019 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, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
13 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
14 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
15 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
16 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
17 ;;; Copyright © 2019 Sebastian Schott <sschott@mailbox.org>
18 ;;; Copyright © 2020 Kei Kebreau <kkebreau@posteo.net>
19 ;;; Copyright © 2020 Christopher Lemmer Webber <cwebber@dustycloud.org>
20 ;;; Copyright © 2020 Tom Zander <tomz@freedommail.ch>
21 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
23 ;;; This file is part of GNU Guix.
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38 (define-module (gnu packages finance)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix packages)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix build-system gnu)
44 #:use-module (guix build-system cmake)
45 #:use-module (guix build-system copy)
46 #:use-module (guix build-system emacs)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system glib-or-gtk)
49 #:use-module (guix build-system go)
50 #:use-module (guix build-system qt)
51 #:use-module (guix utils)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages aidc)
54 #:use-module (gnu packages autotools)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages boost)
57 #:use-module (gnu packages check)
58 #:use-module (gnu packages compression)
59 #:use-module (gnu packages crypto)
60 #:use-module (gnu packages curl)
61 #:use-module (gnu packages databases)
62 #:use-module (gnu packages docbook)
63 #:use-module (gnu packages documentation)
64 #:use-module (gnu packages dns)
65 #:use-module (gnu packages emacs)
66 #:use-module (gnu packages dbm)
67 #:use-module (gnu packages gettext)
68 #:use-module (gnu packages gnome)
69 #:use-module (gnu packages glib)
70 #:use-module (gnu packages gnupg)
71 #:use-module (gnu packages graphviz)
72 #:use-module (gnu packages groff)
73 #:use-module (gnu packages gtk)
74 #:use-module (gnu packages libedit)
75 #:use-module (gnu packages libevent)
76 #:use-module (gnu packages libunwind)
77 #:use-module (gnu packages libusb)
78 #:use-module (gnu packages linux)
79 #:use-module (gnu packages man)
80 #:use-module (gnu packages multiprecision)
81 #:use-module (gnu packages networking)
82 #:use-module (gnu packages pkg-config)
83 #:use-module (gnu packages popt)
84 #:use-module (gnu packages protobuf)
85 #:use-module (gnu packages python)
86 #:use-module (gnu packages python-crypto)
87 #:use-module (gnu packages python-web)
88 #:use-module (gnu packages python-xyz)
89 #:use-module (gnu packages qt)
90 #:use-module (gnu packages readline)
91 #:use-module (gnu packages sphinx)
92 #:use-module (gnu packages texinfo)
93 #:use-module (gnu packages textutils)
94 #:use-module (gnu packages time)
95 #:use-module (gnu packages tls)
96 #:use-module (gnu packages upnp)
97 #:use-module (gnu packages version-control)
98 #:use-module (gnu packages web)
99 #:use-module (gnu packages xml)
100 #:use-module (gnu packages gnuzilla))
102 (define-public bitcoin-core
104 (name "bitcoin-core")
109 (string-append "https://bitcoincore.org/bin/bitcoin-core-"
110 version "/bitcoin-" version ".tar.gz"))
113 "1h3w7brc18145np920vy7j5ms5hym59hvr40swdjx34fbdaisngj"))))
114 (build-system gnu-build-system)
116 `(("pkg-config" ,pkg-config)
117 ("python" ,python) ; for the tests
118 ("util-linux" ,util-linux) ; provides the hexdump command for tests
119 ("qttools" ,qttools)))
121 `(("bdb" ,bdb-4.8) ; 4.8 required for compatibility
123 ("libevent" ,libevent)
124 ("miniupnpc" ,miniupnpc)
126 ("protobuf" ,protobuf)
131 ;; Boost is not found unless specified manually.
132 (string-append "--with-boost="
133 (assoc-ref %build-inputs "boost"))
134 ;; XXX: The configure script looks up Qt paths by
135 ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick
136 ;; up executables residing in 'qttools', so we specify them here.
137 (string-append "ac_cv_path_LRELEASE="
138 (assoc-ref %build-inputs "qttools")
140 (string-append "ac_cv_path_LUPDATE="
141 (assoc-ref %build-inputs "qttools")
144 (modify-phases %standard-phases
145 (add-before 'configure 'make-qt-deterministic
147 ;; Make Qt deterministic.
148 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
150 (add-before 'check 'set-home
152 (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME
154 (add-after 'check 'check-functional
156 (invoke "python3" "./test/functional/test_runner.py"
157 (string-append "--jobs=" (number->string (parallel-job-count))))
159 (home-page "https://bitcoin.org/en/")
160 (synopsis "Bitcoin peer-to-peer client")
162 "Bitcoin is a digital currency that enables instant payments to anyone
163 anywhere in the world. It uses peer-to-peer technology to operate without
164 central authority: managing transactions and issuing money are carried out
165 collectively by the network. Bitcoin Core is the reference implementation
166 of the bitcoin protocol. This package provides the Bitcoin Core command
167 line client and a client based on Qt.")
168 (license license:expat)))
170 (define-public homebank
176 (uri (string-append "http://homebank.free.fr/public/homebank-"
180 "13ampiv68y30kc0p2560g3yz8whqpwnidfcnb9lndv93b9ca767y"))))
181 (build-system glib-or-gtk-build-system)
183 `(("pkg-config" ,pkg-config)
184 ("intltool" ,intltool)))
187 ("libsoup" ,libsoup)))
189 `(#:configure-flags (list "-without-ofx"))) ; libofx is not available yet
190 (home-page "http://homebank.free.fr/")
191 (synopsis "Graphical personal accounting application")
192 (description "HomeBank allows you to manage your personal accounts at
193 home. The seeks to be lightweight, simple and easy to use. It brings
194 features that allow you to analyze your finances in a detailed way instantly
195 and dynamically with report tools based on filtering and graphical charts.")
196 (license license:gpl2+)))
198 (define-public ledger
206 (url "https://github.com/ledger/ledger.git")
207 (commit (string-append "v" version))))
208 (file-name (git-file-name name version))
210 (base32 "1l5c9jf2wnly6ncm9civ8i7v47xld15g1y7wpl0hqwgbfyffwjci"))))
211 (build-system cmake-build-system)
213 `(#:modules (,@%cmake-build-system-modules
214 ((guix build python-build-system) #:select (python-version)))
215 #:imported-modules (,@%cmake-build-system-modules
216 (guix build python-build-system))
218 `("-DBUILD_DOCS:BOOL=ON"
219 "-DBUILD_WEB_DOCS:BOOL=ON"
220 "-DUSE_PYTHON:BOOL=ON"
221 "-DCMAKE_INSTALL_LIBDIR:PATH=lib")
223 (modify-phases (@ (guix build cmake-build-system) %standard-phases)
224 (add-after 'unpack 'fix-python-installation-directory
225 (lambda* (#:key inputs outputs #:allow-other-keys)
226 ;; By default the package attempts to install its Python bindings
227 ;; to the Python store directory, which obviously does not work.
228 ;; Passing -DPython_SITEARCH in #:configure-flags has no effect.
229 (let ((python-version (python-version (assoc-ref inputs "python")))
230 (out (assoc-ref outputs "out")))
231 (substitute* "src/CMakeLists.txt"
232 (("DESTINATION \\$\\{Python_SITEARCH\\}")
233 (string-append "DESTINATION " out "/lib/python"
234 python-version "/site-packages")))
236 (add-before 'configure 'install-examples
237 (lambda* (#:key outputs #:allow-other-keys)
238 (let ((examples (string-append (assoc-ref outputs "out")
239 "/share/doc/ledger/examples")))
240 (install-file "test/input/sample.dat" examples)
241 (install-file "test/input/demo.ledger" examples))
243 (add-after 'build 'build-doc
244 (lambda _ (invoke "make" "doc")))
245 (add-before 'check 'check-setup
246 ;; One test fails if it can't set the timezone.
247 (lambda* (#:key inputs #:allow-other-keys)
249 (string-append (assoc-ref inputs "tzdata")
251 ;; Skip failing test BaselineTest_cmd-org.
252 ;; This is a known upstream issue. See
253 ;; https://github.com/ledger/ledger/issues/550
254 (setenv "ARGS" "-E BaselineTest_cmd-org")
266 ("tzdata" ,tzdata-for-tests)))
267 (home-page "https://ledger-cli.org/")
268 (synopsis "Command-line double-entry accounting program")
270 "Ledger is a powerful, double-entry accounting system that is
271 accessed from the UNIX command-line. This may put off some users, since
272 there is no flashy UI, but for those who want unparalleled reporting
273 access to their data there are few alternatives.
275 Ledger uses text files for input. It reads the files and generates
276 reports; there is no other database or stored state. To use Ledger,
277 you create a file of your account names and transactions, run from the
278 command line with some options to specify input and requested reports, and
279 get output. The output is generally plain text, though you could generate
280 a graph or html instead. Ledger is simple in concept, surprisingly rich
281 in ability, and easy to use.")
282 ;; There are some extra licenses in files which do not presently get
283 ;; installed when you build this package. Different versions of the GPL
284 ;; are used in the contrib and python subdirectories. The bundled version
285 ;; of utfcpp is under the Boost 1.0 license. Also the file
286 ;; `tools/update_copyright_year` has an Expat license.
287 (license (list license:bsd-3
288 license:asl2.0 ; src/strptime.cc
289 (license:non-copyleft
290 "file://src/wcwidth.cc"
291 "See src/wcwidth.cc in the distribution.")))))
293 (define-public emacs-ledger-mode
294 ;; There have been no new releases since 2016.
295 (let ((commit "253a20dc62e137ed0ed8e1dd8614ecba116610ea")
298 (name "emacs-ledger-mode")
299 (version (git-version "3.1.1" revision commit))
304 (url "https://github.com/ledger/ledger-mode.git")
306 (file-name (git-file-name name version))
308 (base32 "06wrgkqpgvk17vibrk2qikdlqn8y63jg86marp1wgmram92mb3jk"))))
309 (build-system cmake-build-system)
311 `(#:modules ((guix build cmake-build-system)
313 (guix build emacs-utils))
314 #:imported-modules (,@%cmake-build-system-modules
315 (guix build emacs-utils))
316 #:tests? #f ; there are none
318 (modify-phases %standard-phases
319 (add-after 'unpack 'patch-site-dir
321 (substitute* "CMakeLists.txt"
322 (("DESTINATION share/emacs/site-lisp/ledger-mode")
323 "DESTINATION share/emacs/site-lisp"))
325 (add-before 'build 'patch-path
326 (lambda* (#:key inputs #:allow-other-keys)
327 (let ((ledger (assoc-ref inputs "ledger")))
328 (make-file-writable "ledger-exec.el")
329 (emacs-substitute-variables "ledger-exec.el"
330 ("ledger-binary-path" (string-append ledger "/bin/ledger"))))
332 (add-after 'build 'build-doc
333 (lambda* (#:key outputs #:allow-other-keys)
334 (let ((target (string-append (assoc-ref outputs "out")
337 (invoke "makeinfo" "-o" target
338 "../source/doc/ledger-mode.texi"))
340 (add-after 'install 'generate-autoload
341 (lambda* (#:key outputs #:allow-other-keys)
342 (let* ((site-dir (string-append (assoc-ref outputs "out")
343 "/share/emacs/site-lisp")))
344 (emacs-generate-autoloads ,name site-dir))
347 `(("ledger" ,ledger)))
349 `(("emacs-minimal" ,emacs-minimal)
350 ("texinfo" ,texinfo)))
351 (home-page "https://ledger-cli.org/")
352 (synopsis "Command-line double-entry accounting program")
354 "Ledger is a powerful, double-entry accounting system that is
355 accessed from the UNIX command-line. This may put off some users, since
356 there is no flashy UI, but for those who want unparalleled reporting
357 access to their data there are few alternatives.
359 Ledger uses text files for input. It reads the files and generates
360 reports; there is no other database or stored state. To use Ledger,
361 you create a file of your account names and transactions, run from the
362 command line with some options to specify input and requested reports, and
363 get output. The output is generally plain text, though you could generate
364 a graph or html instead. Ledger is simple in concept, surprisingly rich
365 in ability, and easy to use.
367 This package provides the Emacs mode.")
368 (license license:gpl2+))))
370 (define-public geierlein
378 (url "https://github.com/stesie/geierlein.git")
379 (commit (string-append "V" version))))
380 (file-name (git-file-name name version))
382 (base32 "00zpwr3lk2vdmd60fgdwdk0xxs52wvnm19ln2m75yfphydvkglic"))))
383 (build-system gnu-build-system)
385 `(#:tests? #f ; would require npm, python and a lot more
387 (modify-phases %standard-phases
388 (delete 'configure) ; no configure script
389 (add-after 'unpack 'override-target-directory-and-tool-paths
390 (lambda* (#:key inputs outputs #:allow-other-keys)
391 (substitute* "Makefile"
393 (string-append "prefix := " (assoc-ref outputs "out") "\n"))
394 ;; Required for tests, unused for now:
396 ;; (string-append (which "python") "\n")))
398 (string-append "INSTALL := " (which "install") "\n")))
399 (substitute* "bin/xgeierlein.in"
400 ;; Use icecat as XULRUNNER
402 (string-append "XULRUNNER=" (which "icecat") "\n"
406 `(("icecat" ,icecat)))
407 (home-page "https://stesie.github.io/geierlein/")
408 (synopsis "Free Elster client, for sending Germany VAT declarations")
410 "Geierlein is a free Elster client, i.e. an application that
411 sends VAT declarations to Germany's fiscal authorities.
413 Currently it is *not* possible to send returns that are due annually
414 (especially the income tax return) since the fiscal authority doesn't
415 allow doing that off the ERiC library (which is proprietary however).
416 It's not clear at the moment whether one day it will be possible to
418 (license license:agpl3+)))
420 (define-public electrum
427 (uri (string-append "https://download.electrum.org/"
431 (base32 "1g00cj1pmckd4xis8r032wmraiv3vd3zc803hnyxa2bnhj8z3bg2"))
432 (modules '((guix build utils)))
435 ;; Delete the bundled dependencies.
436 (delete-file-recursively "packages")
438 (build-system python-build-system)
440 `(("python-pyaes" ,python-pyaes)
441 ("python-pysocks" ,python-pysocks)
442 ("python-sip" ,python-sip)
443 ("python-pyqt" ,python-pyqt)
444 ("python-ecdsa" ,python-ecdsa)
445 ("python-pbkdf2" ,python-pbkdf2)
446 ("python-requests" ,python-requests)
447 ("python-qrcode" ,python-qrcode)
448 ("python-protobuf" ,python-protobuf)
449 ("python-aiohttp" ,python-aiohttp)
450 ("python-aiohttp-socks" ,python-aiohttp-socks)
451 ("python-aiorpcx" ,python-aiorpcx)
452 ("python-certifi" ,python-certifi)
453 ("python-dnspython" ,python-dnspython)
454 ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
456 `(#:tests? #f ;; package doesn't have any tests
458 (modify-phases %standard-phases
459 (add-before 'build 'patch-home
460 (lambda* (#:key outputs #:allow-other-keys)
461 (substitute* "setup.py"
463 (string-append (assoc-ref outputs "out") "/local/share"))))))))
464 (home-page "https://electrum.org/")
465 (synopsis "Bitcoin wallet")
467 "Electrum is a lightweight Bitcoin client, based on a client-server
468 protocol. It supports Simple Payment Verification (SPV) and deterministic key
469 generation from a seed. Your secret keys are encrypted and are never sent to
470 other machines/servers. Electrum does not download the Bitcoin blockchain.")
471 (license license:expat)))
473 (define-public electron-cash
475 (name "electron-cash")
481 (url "https://github.com/Electron-Cash/Electron-Cash.git")
483 (file-name (git-file-name name version))
485 (base32 "1dp7cj1185h6xfz6jzh0iq58zvg3wq9hl96bkgxkf5h4ygni2vm6"))))
486 (build-system python-build-system)
488 `(("libevent" ,libevent)
489 ("libsecp256k1", libsecp256k1)
491 ("python-cython" ,python-cython)
492 ("python-dateutil", python-dateutil)
493 ("python-dnspython" ,python-dnspython)
494 ("python-ecdsa" ,python-ecdsa)
495 ("python-hidapi" ,python-hidapi)
496 ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)
497 ("python-keepkey" ,python-keepkey)
498 ("python-protobuf" ,python-protobuf)
499 ("python-pyaes" ,python-pyaes)
500 ("python-pyqt" ,python-pyqt)
501 ("python-pysocks" ,python-pysocks)
502 ("python-qrcode" ,python-qrcode)
503 ("python-requests" ,python-requests)
504 ("python-stem" ,python-stem)
505 ("python-trezor" ,python-trezor)
509 `(#:tests? #f ; No tests
510 #:modules ((guix build python-build-system)
511 (guix build qt-utils)
513 #:imported-modules (,@%python-build-system-modules
514 (guix build qt-utils))
516 (modify-phases %standard-phases
517 (add-after 'unpack 'patch-home
518 (lambda* (#:key outputs #:allow-other-keys)
519 (substitute* "setup.py"
521 (string-append (assoc-ref outputs "out") "/local/share")))))
522 (add-after 'unpack 'use-libsecp256k1-input
523 (lambda* (#:key inputs #:allow-other-keys)
524 (substitute* "lib/secp256k1.py"
525 (("library_paths = .* 'libsecp256k1.so.0'.")
526 (string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'")))))
527 (add-after 'install 'wrap-qt
528 (lambda* (#:key outputs #:allow-other-keys)
529 (wrap-qt-program (assoc-ref outputs "out") "electron-cash")
531 (home-page "https://electroncash.org/")
532 (synopsis "Bitcoin Cash wallet")
534 "Electroncash is a lightweight Bitcoin Cash client, based on a client-server
535 protocol. It supports Simple Payment Verification (SPV) and deterministic key
536 generation from a seed. Your secret keys are encrypted and are never sent to
537 other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.")
538 (license license:expat)))
540 (define-public monero
541 ;; This package bundles easylogging++ and lmdb.
542 ;; The bundled easylogging++ is modified, and the changes will not be
544 ;; The devs deem the lmdb driver too critical a consenus component, to use
545 ;; the system's dynamically linked library.
553 (url "https://github.com/monero-project/monero.git")
554 (commit (string-append "v" version))
556 (file-name (git-file-name name version))
557 (patches (search-patches "monero-use-system-miniupnpc.patch"))
558 (modules '((guix build utils)))
561 ;; Delete bundled dependencies.
563 delete-file-recursively
564 '("external/miniupnp" "external/rapidjson"
569 "06zzwa0y8ic6x3y2fy501788r51p4klanyvmm76ywrwf087njlkv"))))
570 (build-system cmake-build-system)
572 `(("doxygen" ,doxygen)
574 ("graphviz" ,graphviz)
575 ("pkg-config" ,pkg-config)
576 ("protobuf" ,protobuf)
578 ("qttools" ,qttools)))
584 ("libsodium" ,libsodium)
585 ("libunwind" ,libunwind)
587 ("miniupnpc" ,miniupnpc)
589 ("protobuf" ,protobuf)
590 ("rapidjson" ,rapidjson)
591 ("readline" ,readline)
596 `(#:out-of-source? #t
598 (list "-DARCH=default"
600 "-DBUILD_GUI_DEPS=ON"
601 (string-append "-DReadline_ROOT_DIR="
602 (assoc-ref %build-inputs "readline")))
604 (modify-phases %standard-phases
605 ;; tests/core_tests need a valid HOME
606 (add-before 'configure 'set-home
608 (setenv "HOME" (getcwd))
610 (add-after 'set-home 'change-log-path
612 (substitute* "contrib/epee/src/mlog.cpp"
613 (("epee::string_tools::get_current_module_folder\\(\\)")
616 "return ((std::string(getenv(\"HOME\"))) / "))
618 (add-after 'change-log-path 'fix-file-permissions-for-tests
620 (for-each make-file-writable
621 (find-files "tests/data/" "wallet_9svHk1.*"))
623 ;; Only try tests that don't need access to network or system
626 ;; Core tests sometimes fail, at least on i686-linux.
627 ;; Let's disable them for now and just try hash tests
629 ;; (invoke "make" "ARGS=-R 'hash|core_tests' --verbose" "test")))
630 (invoke "make" "ARGS=-R 'hash' --verbose" "test")))
631 (add-after 'check 'unit-tests
633 (let ((excluded-unit-tests
635 '("AddressFromURL.Success"
636 "AddressFromURL.Failure"
637 "DNSResolver.IPv4Success"
638 "DNSResolver.DNSSECSuccess"
639 "DNSResolver.DNSSECFailure"
640 "DNSResolver.GetTXTRecord"
641 "is_hdd.linux_os_root")
643 (invoke "tests/unit_tests/unit_tests"
644 (string-append "--gtest_filter=-"
645 excluded-unit-tests)))))
646 (add-after 'install 'install-librandomx
647 (lambda* (#:key outputs #:allow-other-keys)
648 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
649 (install-file "external/randomx/librandomx.a" lib)
651 (add-after 'install 'delete-dead-links
652 (lambda* (#:key outputs #:allow-other-keys)
653 (let ((out (assoc-ref outputs "out")))
654 (delete-file (string-append out "/lib/libprotobuf.so"))
655 (delete-file (string-append out "/lib/libusb-1.0.so"))
657 (home-page "https://web.getmonero.org/")
658 (synopsis "Command-line interface to the Monero currency")
660 "Monero is a secure, private, untraceable currency. This package provides
661 the Monero command line client and daemon.")
662 (license license:bsd-3)))
664 (define-public monero-gui
672 (url "https://github.com/monero-project/monero-gui.git")
673 (commit (string-append "v" version))))
674 (file-name (git-file-name name version))
677 "12m5fgnxkr11q2arx1m5ccpxqm5ljcvm6l547dwqn297zs5jim4z"))))
678 (build-system qt-build-system)
680 `(("pkg-config" ,pkg-config)
681 ("qttools" ,qttools)))
685 ("libsodium" ,libsodium)
686 ("libunwind" ,libunwind)
689 ("protobuf" ,protobuf)
691 ("qtdeclarative" ,qtdeclarative)
692 ("qtgraphicaleffects" ,qtgraphicaleffects)
693 ("qtlocation" ,qtlocation)
694 ("qtmultimedia" ,qtmultimedia)
695 ("qtquickcontrols" ,qtquickcontrols)
696 ("qtquickcontrols2",qtquickcontrols2)
698 ("qtxmlpatterns" ,qtxmlpatterns)
699 ("unbound" ,unbound)))
701 `(("monero" ,monero)))
703 `(#:tests? #f ; No tests
705 (modify-phases %standard-phases
706 (add-after 'unpack 'fix-makefile-vars
708 (substitute* "src/zxcvbn-c/makefile"
711 (add-after 'fix-makefile-vars 'fix-paths
712 (lambda* (#:key inputs outputs #:allow-other-keys)
713 (let ((boost (assoc-ref inputs "boost"))
714 (monero (assoc-ref inputs "monero"))
715 (openssl (assoc-ref inputs "openssl"))
716 (qttools (assoc-ref inputs "qttools"))
717 (out (assoc-ref outputs "out")))
718 (substitute* "monero-wallet-gui.pro"
719 (("-L/usr/local/lib")
721 (("-L/usr/local/opt/openssl/lib")
722 (string-append "-L" openssl "/lib"))
723 (("-L/usr/local/opt/boost/lib")
724 (string-append "-L" boost "/lib"))
725 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
726 (string-append qttools "/bin/lrelease"))
727 (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate")
728 (string-append qttools "/bin/lupdate")))
729 (substitute* "deployment.pri"
730 (("/opt/\\$\\$\\{TARGET\\}/bin")
731 (string-append out "/bin")))
732 (substitute* "src/daemon/DaemonManager.cpp"
733 (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod")
734 (string-append "\"" monero "/bin/monerod")))
736 (add-after 'fix-paths 'make-qt-deterministic
738 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
740 (add-after 'make-qt-deterministic 'fix-version
742 (substitute* "build.sh"
743 (("echo .*> version.js")
745 (with-output-to-file "version.js"
748 "var GUI_VERSION = \"~a\"~@
749 var GUI_MONERO_VERSION = \"~a\"~%"
751 ,(package-version monero))))
757 (invoke "qmake" "../monero-wallet-gui.pro" "CONFIG+=release")))
758 (add-before 'build 'build-zxcvbn-c
760 (invoke "make" "-C" "../src/zxcvbn-c"))))))
761 (home-page "https://web.getmonero.org/")
762 (synopsis "Graphical user interface for the Monero currency")
764 "Monero is a secure, private, untraceable currency. This package provides
765 the Monero GUI client.")
766 (license license:bsd-3)))
768 (define-public python-trezor-agent
770 (name "python-trezor-agent")
776 (url "https://github.com/romanz/trezor-agent.git")
777 (commit (string-append "v" version))))
778 (file-name (git-file-name name version))
780 (base32 "0q99vbfd3h85s8rnjipnmldixabqmmlk5w9karv6f0rhyi54f4zv"))))
781 (build-system python-build-system)
784 (modify-phases %standard-phases
785 (add-after 'unpack 'remove-requires-backports-shutil-which
786 ;; Remove requires on backport of shutil_which, as python 3.4+ has
787 ;; a built-in implementation supported in python-trezor-agent.
789 (substitute* "setup.py"
790 (("'backports.shutil_which>=3.5.1',") ""))
793 (add-after 'install 'check
794 (lambda* (#:key outputs inputs #:allow-other-keys)
795 ;; Make installed package available for running the tests.
796 (add-installed-pythonpath inputs outputs)
797 (invoke "py.test"))))))
799 `(("python-configargparse" ,python-configargparse)
800 ("python-daemon" ,python-daemon)
801 ("python-docutils" ,python-docutils)
802 ("python-ecdsa" ,python-ecdsa)
803 ("python-ed25519" ,python-ed25519)
804 ("python-mnemonic" ,python-mnemonic)
805 ("python-pymsgbox" ,python-pymsgbox)
806 ("python-semver" ,python-semver)
807 ("python-unidecode" ,python-unidecode)
808 ("python-wheel" ,python-wheel)))
811 ("python-mock" ,python-mock)
812 ("python-pytest" ,python-pytest)))
813 (home-page "https://github.com/romanz/trezor-agent")
814 (synopsis "Use hardware wallets as SSH and GPG agent")
816 "@code{libagent} is a library that allows using TREZOR, Keepkey and
817 Ledger Nano as a hardware SSH/GPG agent.")
818 (license license:lgpl3)))
820 (define-public python-mnemonic
822 (name "python-mnemonic")
827 (uri (pypi-uri "mnemonic" version))
829 (base32 "0cd9prmdj8wzdmc7lxbf9lz0xrlkvak5ignag406mmfbn81fndsf"))))
830 (build-system python-build-system)
832 `(("python-pbkdf2" ,python-pbkdf2)))
833 (home-page "https://github.com/trezor/python-mnemonic")
834 (synopsis "Implementation of Bitcoin BIP-0039")
835 (description "@code{mnemonic} is a library that provides an implementation
836 of Bitcoin BIP-0039.")
837 (license license:expat)))
839 (define-public python2-mnemonic
840 (package-with-python2 python-mnemonic))
842 (define-public python-ledgerblue
844 (name "python-ledgerblue")
849 (uri (pypi-uri "ledgerblue" version))
852 "010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb"))))
853 (build-system python-build-system)
855 `(("python-ecpy" ,python-ecpy)
856 ("python-future" ,python-future)
857 ("python-hidapi" ,python-hidapi)
858 ("python-pillow" ,python-pillow)
859 ("python-protobuf" ,python-protobuf)
860 ("python-pycrypto" ,python-pycrypto)))
861 (home-page "https://github.com/LedgerHQ/blue-loader-python")
862 (synopsis "Python library to communicate with Ledger Blue/Nano S")
863 (description "@code{ledgerblue} is a Python library to communicate with
864 Ledger Blue/Nano S.")
865 (license license:asl2.0)))
867 (define-public python2-ledgerblue
868 (package-with-python2 python-ledgerblue))
870 (define-public python-trezor
872 (name "python-trezor")
877 (uri (pypi-uri "trezor" version))
880 "0211m027vlvyqy83kwbjjjxalb04xgf1klv0h0y0f0yhj07516n7"))))
881 (build-system python-build-system)
884 (modify-phases %standard-phases
885 ;; Default tests run device-specific tests which fail, only run specific tests.
887 (lambda* (#:key inputs outputs #:allow-other-keys)
888 ;; Delete tests that require network access.
889 (delete-file "trezorlib/tests/unit_tests/test_tx_api.py")
890 (invoke "python" "-m" "pytest" "--pyarg" "trezorlib.tests.unit_tests"))))))
892 `(("python-click" ,python-click)
893 ("python-construct" ,python-construct)
894 ("python-ecdsa" ,python-ecdsa)
895 ("python-libusb1" ,python-libusb1)
896 ("python-mnemonic" ,python-mnemonic)
897 ("python-pyblake2" ,python-pyblake2)
898 ("python-requests" ,python-requests)
899 ("python-typing-extensions" ,python-typing-extensions)))
902 `(("protobuf" ,protobuf)
903 ("python-black" ,python-black)
904 ("python-protobuf" ,python-protobuf)
905 ("python-isort" ,python-isort)
906 ("python-pyqt" ,python-pyqt)
907 ("python-pytest" ,python-pytest)))
908 (home-page "https://github.com/trezor/python-trezor")
909 (synopsis "Python library for communicating with TREZOR Hardware Wallet")
910 (description "@code{trezor} is a Python library for communicating with
911 TREZOR Hardware Wallet.")
912 (license license:lgpl3)))
914 (define-public python-keepkey
916 (name "python-keepkey")
921 (uri (pypi-uri "keepkey" version))
924 "0z3d0m6364v9dv0njs4cd5m5ai6j6v35xaaxfxl90m9vmyxy81vd"))))
925 (build-system python-build-system)
928 (modify-phases %standard-phases
930 (add-after 'install 'check
931 (lambda* (#:key inputs outputs #:allow-other-keys)
932 (add-installed-pythonpath inputs outputs)
933 (apply invoke "python" (find-files "tests/unit" "\\.py$")))))))
935 `(("python-ecdsa" ,python-ecdsa)
936 ("python-hidapi" ,python-hidapi)
937 ("python-libusb1" ,python-libusb1)
938 ("python-mnemonic" ,python-mnemonic)
939 ("python-protobuf" ,python-protobuf)))
940 (home-page "https://github.com/keepkey/python-keepkey")
941 (synopsis "Python library for communicating with KeepKey Hardware Wallet")
942 (description "@code{keepkey} is a Python library for communicating with
943 the KeepKey Hardware Wallet.")
944 (license license:lgpl3)))
946 (define-public python2-keepkey
947 (package-with-python2 python-keepkey))
949 (define-public ledger-agent
951 (name "ledger-agent")
956 (uri (pypi-uri "ledger_agent" version))
959 "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92"))))
960 (build-system python-build-system)
962 `(("python-ledgerblue" ,python-ledgerblue)
963 ("python-trezor-agent" ,python-trezor-agent)))
964 (home-page "http://github.com/romanz/trezor-agent")
965 (synopsis "Ledger as hardware SSH/GPG agent")
966 (description "This package allows using Ledger as hardware SSH/GPG agent.
968 Usage for SSH: trezor-agent foo@@example.com --connect
969 Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\"
970 Then set the environment variable GNUPGHOME to
971 \"${HOME}/.gnupg/trezor\".")
972 (license license:lgpl3)))
974 (define-public trezor-agent
976 (name "trezor-agent")
981 (uri (pypi-uri "trezor_agent" version))
984 "144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8"))))
986 ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
988 (modify-phases %standard-phases
989 (add-after 'wrap 'fixup-agent-py
990 (lambda* (#:key inputs outputs #:allow-other-keys)
991 (let* ((out (assoc-ref outputs "out")))
992 ;; overwrite the wrapper with the real thing.
993 (install-file "./trezor_agent.py"
994 (string-append out "/bin"))
996 (build-system python-build-system)
998 `(("python-trezor" ,python-trezor)
999 ("python-trezor-agent" ,python-trezor-agent)))
1001 `(("python-hidapi" ,python-hidapi)))
1002 (home-page "https://github.com/romanz/trezor-agent")
1003 (synopsis "Using Trezor as hardware SSH/GPG agent")
1004 (description "This package allows using Trezor as a hardware SSH/GPG
1006 (license license:lgpl3)))
1008 (define-public keepkey-agent
1010 (name "keepkey-agent")
1015 (uri (pypi-uri "keepkey_agent" version))
1018 "03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27"))))
1019 (build-system python-build-system)
1021 `(("python-keepkey" ,python-keepkey)
1022 ("python-trezor-agent" ,python-trezor-agent)))
1023 (home-page "http://github.com/romanz/trezor-agent")
1024 (synopsis "KeepKey as hardware SSH/GPG agent")
1025 (description "This package allows using KeepKey as a hardware SSH/GPG
1027 (license license:lgpl3)))
1029 (define-public python-stdnum
1031 (name "python-stdnum")
1036 (uri (pypi-uri "python-stdnum" version))
1039 "0q4128rjdgavywhzlm2gz2n5ybc9b9sxs81g50dvxf5q7z9q63qj"))))
1040 (build-system python-build-system)
1042 '(#:phases (modify-phases %standard-phases
1045 (invoke "nosetests"))))))
1047 `(("python-nose" ,python-nose)))
1049 "https://arthurdejong.org/python-stdnum/")
1051 "Python module to handle standardized number and code formats")
1053 "This is a Python library that aims to provide functions to handle,
1054 parse and validate standard numbers.
1055 The module supports more than 100 different number formats
1056 amongst which a great number of VAT and other tax numbers,
1057 personal identity and company identification codes,
1058 international standard numbers (ISBN, IBAN, EAN, etc.)
1059 and various other formats.
1060 The module also inclused implementations of the Verhoeff,
1061 Luhn and family of ISO/IEC 7064 check digit algorithms. ")
1062 (license license:lgpl2.1+)))
1064 (define-public python2-stdnum
1065 (package-with-python2 python-stdnum))
1067 (define-public python-duniterpy
1069 (name "python-duniterpy")
1074 (uri (pypi-uri "duniterpy" version))
1076 (base32 "0rw2c7r9gcqhymp82gbk1ky45zqbypsi2q5x4vdwjc6g00kh7h6l"))))
1077 (build-system python-build-system)
1079 ;; FIXME: Tests fail with: "ModuleNotFoundError: No module named
1080 ;; 'tests'". Not sure how to handle this.
1083 (modify-phases %standard-phases
1084 ;; "setup.py" tries to open missing "requirements.txt".
1085 (add-after 'unpack 'ignore-missing-file
1087 (substitute* "setup.py"
1088 (("open\\('requirements\\.txt'\\)") "[]"))
1091 `(("aiohttp" ,python-aiohttp)
1092 ("attrs" ,python-attrs)
1093 ("base58" ,python-base58)
1094 ("jsonschema" ,python-jsonschema)
1095 ("libnacl" ,python-libnacl)
1096 ("pyaes" ,python-pyaes)
1097 ("pylibscrypt" ,python-pylibscrypt)
1098 ("pypeg2" ,python-pypeg2)))
1099 (home-page "https://git.duniter.org/clients/python/duniterpy")
1100 (synopsis "Python implementation of Duniter API")
1101 (description "@code{duniterpy} is an implementation of
1102 @uref{https://github.com/duniter/duniter/, duniter} API. Its
1105 @item Support Duniter's Basic Merkle API and protocol
1106 @item Asynchronous/synchronous without threads
1107 @item Support HTTP, HTTPS and Web Socket transport for Basic Merkle API
1108 @item Support Elasticsearch Duniter4j API
1109 @item Duniter signing key
1110 @item Sign/verify and encrypt/decrypt messages with the Duniter credentials
1112 (license license:gpl3+)))
1114 (define-public silkaj
1121 (uri (pypi-uri "silkaj" version))
1123 (base32 "0hrn0jwg415z7wjkp0myvw85wszlfi18f56j03075xxakr4dmi2j"))))
1124 (build-system python-build-system)
1126 `(#:tests? #f)) ;no test
1128 `(("click" ,python-click)
1129 ("duniterpy" ,python-duniterpy)
1130 ("ipaddress" ,python-ipaddress)
1131 ("pynacl" ,python-pynacl)
1132 ("tabulate" ,python-tabulate)
1133 ("texttable" ,python-texttable)))
1134 (home-page "https://git.duniter.org/clients/python/silkaj")
1135 (synopsis "Command line client for Duniter network")
1136 (description "@code{Silkaj} is a command line client for the
1137 @uref{https://github.com/duniter/duniter/, Duniter} network.
1141 @item information about currency,
1142 @item issuers difficulty to generate next block,
1143 @item network view of nodes,
1144 @item list of last issuers,
1145 @item send transactions,
1146 @item get account amount.
1148 (license license:agpl3+)))
1150 (define-public grisbi
1158 "mirror://sourceforge/grisbi/grisbi%20stable/"
1159 (version-major+minor version) ".x/" version
1160 "/grisbi-" version ".tar.bz2"))
1163 "1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw"))))
1164 (build-system glib-or-gtk-build-system)
1166 `(#:configure-flags (list "--without-ofx")))
1168 `(("dconf" ,dconf)))
1170 `(("glib" ,glib "bin") ; glib-compile-schemas
1171 ("pkg-config" ,pkg-config)
1172 ("intltool" ,intltool)))
1175 ("libgsf" ,libgsf)))
1176 (synopsis "Personal accounting application")
1177 (description "Grisbi is a personal accounting application written by
1178 French developers that is designed to follow French accounting rules.
1179 Grisbi can manage multiple accounts, currencies and users. It manages
1180 third party, expenditure and receipt categories, budgetary lines,
1181 financial years, budget estimates, bankcard management and other
1183 (home-page "https://grisbi.org")
1184 (license license:gpl2+)))
1186 (define-public trezord-udev-rules
1187 (let ((commit "bff7fdfe436c727982cc553bdfb29a9021b423b0")
1190 (name "trezord-udev-rules")
1191 (version (git-version "0.0.0" revision commit))
1196 (url "https://github.com/trezor/trezor-common.git")
1200 "14mrirrn68if7ja6qdk9qlxs1hv0f21vrxy5ncnms0gx9iwakp2l"))
1201 (file-name (git-file-name name version))))
1202 (build-system copy-build-system)
1205 '(("./udev/51-trezor.rules" "lib/udev/rules.d/"))))
1206 (home-page "https://github.com/trezor/trezor-common")
1207 (synopsis "Udev rules for trezord")
1209 "This contains the udev rules for trezord. This will let a user run
1210 trezord as a regular user instead of needing to it run as root.")
1211 (license license:lgpl3+))))
1213 (define-public trezord
1221 (url "https://github.com/trezor/trezord-go.git")
1222 (commit (string-append "v" version))))
1225 "1ks1fa0027s3xp0z6qp0dxmayvrb4dwwscfhbx7da0khp153f2cp"))
1226 (file-name (git-file-name name version))))
1227 (build-system go-build-system)
1229 '(#:import-path "github.com/trezor/trezord-go"))
1230 (home-page "https://trezor.io")
1231 (synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)")
1232 (description "This allows a Trezor hardware wallet to communicate to the
1234 (license license:lgpl3+)))
1236 (define-public bitcoin-abc
1238 (inherit bitcoin-core)
1239 (name "bitcoin-abc")
1243 (uri (string-append "https://download.bitcoinabc.org/"
1244 version "/src/bitcoin-abc-"
1248 "0py5ilfi4r8qh5r9637vwch27sqrrn0dg9rz8bccnj3lp2xpzw27"))))
1250 `(("autoconf" ,autoconf)
1251 ("automake" ,automake)
1252 ("libtool" ,libtool)
1253 ("pkg-config" ,pkg-config)
1254 ("python" ,python) ; for the tests
1255 ("util-linux" ,util-linux) ; provides the hexdump command for tests
1256 ("qttools" ,qttools)))
1260 ("libevent" ,libevent)
1261 ("miniupnpc" ,miniupnpc)
1262 ("openssl" ,openssl)
1263 ("protobuf" ,protobuf)
1264 ("qrencode" ,qrencode)
1267 (home-page "https://www.bitcoinabc.org/")
1268 (synopsis "Bitcoin ABC peer-to-peer full node for the Bitcoin Cash protocol")
1270 "Bitcoin Cash brings sound money to the world, fulfilling the original
1271 promise of Bitcoin as Peer-to-Peer Electronic Cash. Merchants and users are
1272 empowered with low fees and reliable confirmations is a digital currency that
1273 enables instant payments to anyone anywhere in the world. It uses
1274 peer-to-peer technology to operate without central authority: managing
1275 transactions and issuing money are carried out collectively by the network.
1276 As a fork it implemented changes lowering the time between blocks and now
1277 offers confimations after less than 5 seconds and have significantly lower
1278 fees that BTC. Bitcoin ABC is the reference implementation of the Bitcoin
1279 Cash protocol. This package provides the Bitcoin Cash command line client and
1280 a client based on Qt. This is a fork of Bitcoin Core.")))
1282 (define-public libofx
1289 (url "https://github.com/libofx/libofx")
1291 (file-name (git-file-name name version))
1294 "1jx56ma351p8af8dvavygjwf6ipa7qbgq7bpdsymwj27apdnixfy"))))
1295 (build-system gnu-build-system)
1297 '(#:parallel-build? #f ;fails with -j64
1299 (list (string-append "--with-opensp-includes="
1300 (assoc-ref %build-inputs "opensp")
1301 "/include/OpenSP"))))
1303 `(("autoconf" ,autoconf)
1304 ("automake" ,automake)
1305 ("gengetopt" ,gengetopt)
1306 ("help2man" ,help2man)
1307 ("libtool" ,libtool)
1308 ("pkg-config" ,pkg-config)))
1311 ("libxml++-2" ,libxml++-2)
1312 ("opensp" ,opensp)))
1313 (home-page "http://libofx.sourceforge.net/")
1314 (synopsis "Library supporting the Open Financial Exchange format")
1316 "The LibOFX library is an API designed to allow applications to very easily
1317 support OFX command responses, usually provided by financial institutions. The
1318 following three utilities are included with the library:
1320 @item @code{ofxdump}
1321 @item @code{ofx2qif}
1322 @item @code{ofxconnect}
1324 (license license:gpl2+)))
1326 (define-public opensp
1332 (uri (string-append "mirror://sourceforge/openjade/opensp/"
1333 version "/OpenSP-" version ".tar.gz"))
1336 "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p"))))
1337 (build-system gnu-build-system)
1339 `(("gettext" ,gettext-minimal)))
1341 `(("docbook-xml" ,docbook-xml-4.1.2)
1342 ("docbook-xsl" ,docbook-xsl)
1345 `(;; TODO: Fix and enable tests.
1348 (modify-phases %standard-phases
1349 (add-after 'unpack 'patch-docbook-paths
1350 (lambda* (#:key inputs #:allow-other-keys)
1351 (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
1352 "/xml/dtd/docbook"))
1353 (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
1354 "/xml/xsl/docbook-xsl-"
1355 ,(package-version docbook-xsl))))
1356 (substitute* (find-files "docsrc" "\\.xml$")
1357 (("/usr/share/sgml/docbook/xml-dtd-4.1.2") xmldoc)
1358 (("http://.*/docbookx\\.dtd")
1359 (string-append xmldoc "/docbookx.dtd")))
1360 ;; Directly pass the path to the stylesheet to xmlto.
1361 (substitute* "docsrc/Makefile.in"
1363 (string-append "$(XMLTO) -x " xsldoc
1364 "/manpages/docbook.xsl")))
1366 (home-page "http://openjade.sourceforge.net/")
1367 (synopsis "Suite of SGML/XML processing tools")
1368 (description "OpenSP is an object-oriented toolkit for SGML parsing and
1369 entity management.")
1371 ;; expat license with added clause regarding advertising
1372 (license:non-copyleft
1374 "See COPYING in the distribution."))))
1376 (define-public bitcoin-unlimited
1378 (name "bitcoin-unlimited")
1384 (url "https://github.com/BitcoinUnlimited/BitcoinUnlimited.git")
1385 (commit (string-append "bucash" version))))
1386 (file-name (git-file-name name version))
1388 (base32 "05rcd73mg2fb2zb6b1imzspck6jhcy3xymrr7n24kwjrzmvihdpx"))))
1389 (build-system gnu-build-system)
1391 `(("autoconf" ,autoconf)
1392 ("automake" ,automake)
1393 ("libtool" ,libtool)
1394 ("pkg-config" ,pkg-config)
1395 ("python" ,python) ; for the tests
1396 ("util-linux" ,util-linux) ; provides the hexdump command for tests
1397 ("qttools" ,qttools)))
1401 ("libevent" ,libevent)
1402 ("miniupnpc" ,miniupnpc)
1403 ("openssl" ,openssl)
1404 ("protobuf" ,protobuf)
1405 ("qrencode" ,qrencode)
1412 ;; Boost is not found unless specified manually.
1413 (string-append "--with-boost="
1414 (assoc-ref %build-inputs "boost"))
1415 ;; XXX: The configure script looks up Qt paths by
1416 ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick
1417 ;; up executables residing in 'qttools', so we specify them here.
1418 (string-append "ac_cv_path_LRELEASE="
1419 (assoc-ref %build-inputs "qttools")
1421 (string-append "ac_cv_path_LUPDATE="
1422 (assoc-ref %build-inputs "qttools")
1425 (modify-phases %standard-phases
1426 (add-after 'unpack 'fix-tests
1428 ;; TODO: Find why utilprocess_tests never ends. Disable for now.
1429 (substitute* "src/test/utilprocess_tests.cpp"
1430 (("#if \\(BOOST_OS_LINUX && \\(BOOST_VERSION >= 106500\\)\\)")
1433 (add-before 'configure 'make-qt-deterministic
1435 ;; Make Qt deterministic.
1436 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
1438 (add-before 'check 'set-home
1440 (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME
1442 (home-page "https://www.bitcoinunlimited.info/")
1443 (synopsis "Client for the Bitcoin Cash protocol")
1445 "Bitcoin Unlimited is a client for the Bitcoin Cash peer-to-peer
1446 electronic cash system. This package provides a command line client and
1448 (license license:expat)))
1450 (define-public fulcrum
1457 (uri (string-append "https://gitlab.com/FloweeTheHub/fulcrum/-/archive/v"
1458 version "/fulcrum-v" version ".tar.gz"))
1460 (base32 "1xywwgsdhkiblv6la0pfhvn2s9q8vnz6pjg35647rlwzi6ybf0ak"))))
1461 (build-system gnu-build-system)
1464 (modify-phases %standard-phases
1465 ;; Call qmake instead of configure to create a Makefile.
1470 (string-append "PREFIX=" %output)
1473 `(("qttools" ,qttools)))
1475 `(("python" ,python)
1477 ("rocksdb" ,rocksdb)
1479 (home-page "https://gitlab.com/FloweeTheHub/fulcrum/")
1480 (synopsis "Fast and nimble SPV server for Bitcoin Cash")
1482 "Flowee Fulcrum is a server that is the back-end for @acronym{SPV,
1483 Simplified Payment Verification} wallets, it provides the full API for those
1484 walets in a fast and small server. The full data is stored in a full node,
1485 like Flowee the Hub, which Fulcrum connects to over RPC.")
1486 (license license:gpl3+)))
1488 (define-public flowee
1491 (version "2020.03.2")
1495 (uri (string-append "https://gitlab.com/FloweeTheHub/thehub/-/archive/"
1496 version "/thehub-" version ".tar.gz"))
1498 (base32 "1m8wfwxljvd2gqpfj1w37xky4isa3h9a7g57cnf3l4r90r4bxj47"))))
1499 (build-system cmake-build-system)
1501 `(#:configure-flags '("-Dbuild_tests=ON" "-Denable_gui=OFF")
1503 (modify-phases %standard-phases
1504 (add-before 'configure 'make-qt-deterministic
1506 ;; Make Qt deterministic.
1507 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
1509 (add-before 'configure 'disable-black-box
1510 ;; the black-box testing runs full hubs and lets them interact.
1511 ;; this is more fragile and a slow machine, or low memory machine, may
1512 ;; make the tests timeout and fail. We just disable them here.
1514 (substitute* "testing/CMakeLists.txt"
1517 (add-after 'configure 'set-build-info
1518 ;; Their genbuild.sh to generate a build.h fails in guix (no .git dir) .
1519 ;; Its purpose is to write the tag name in the build.h file. We do that
1522 (with-output-to-file "include/build.h"
1525 (string-append "#define BUILD_DESC " "\"", version "\""))))))
1526 (add-before 'check 'set-home
1528 (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME
1532 (invoke "make" "check" "-C" "testing"))))))
1536 ("libevent" ,libevent)
1537 ("miniupnpc" ,miniupnpc)
1538 ("openssl" ,openssl)
1539 ("qtbase" ,qtbase)))
1541 `(("pkg-config" ,pkg-config)
1542 ("qttools" ,qttools)
1543 ("util-linux" ,util-linux))) ; provides the hexdump command for tests
1544 (home-page "https://flowee.org")
1545 (synopsis "Flowee infrastructure tools and services")
1547 "Flowee packages all tier-1 applications and services from the Flowee group.
1548 This includes components like The Hub and Indexer which and various others
1549 that allows you to run services and through them access the Bitcoin Cash networks.")
1550 (license license:gpl3+)))
1553 (define-public beancount
1560 (uri (pypi-uri "beancount" version))
1563 "0pcfl2rx2ng06i4f9izdpnlnb1k0rdzsckbzzn4cn4ixfzyssm0m"))
1564 (patches (search-patches "beancount-disable-googleapis-fonts.patch"))))
1565 (build-system python-build-system)
1567 `(#:tests? #f ; Says test is missing, not sure why
1569 (modify-phases %standard-phases
1570 ;; Not importing the googleapis package for now
1571 (add-after 'unpack 'ignore-googleapis
1573 (substitute* "setup.py"
1574 (("'google-api-python-client',") ""))
1577 `(("python-beautifulsoup4" ,python-beautifulsoup4)
1578 ("python-bottle" ,python-bottle)
1579 ("python-chardet" ,python-chardet)
1580 ("python-dateutil" ,python-dateutil)
1581 ("python-lxml" ,python-lxml)
1582 ("python-magic" ,python-magic)
1583 ("python-ply" ,python-ply)
1584 ("python-requests" ,python-requests)))
1586 `(("python-pytest" ,python-pytest)))
1587 (home-page "http://furius.ca/beancount")
1588 (synopsis "Command-line double-entry accounting tool")
1590 "Beancount is a double-entry bookkeeping computer language that lets you
1591 define financial transaction records in a text file, read them in memory,
1592 generate a variety of reports from them, and provides a web interface.")
1593 (license license:gpl2)))
1595 ;; The beancount source ships with elisp in a subdirectory
1596 (define-public emacs-beancount
1599 (name "emacs-beancount")
1600 (build-system emacs-build-system)
1602 `(#:tests? #f ;no tests
1604 (modify-phases %standard-phases
1605 (add-before 'install 'chdir-emacs
1607 (chdir "editors/emacs")
1611 (synopsis "Emacs mode for beancount")
1613 "Emacs-beancount is an Emacs mode for the Beancount accounting tool.")))