gnu: sdl-mixer: Enable fluidsynth MIDI backend.
[jackhill/guix/guix.git] / gnu / packages / finance.scm
CommitLineData
20c6b9da 1;;; GNU Guix --- Functional package management for GNU
fe7fa353 2;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
136ff9a2 3;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
d3699b31 4;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
cb0866c3 5;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
9475fd92 6;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
8514662b 7;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
14e09e90 8;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
9859800f 9;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
5424f9bc 10;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
3da86c52 11;;; Copyright © 2018 Adriano Peluso <catonano@gmail.com>
8f4d15f1 12;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
948e888d 13;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
fc54da1d 14;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
90bb244f 15;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
01b37d0f 16;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
66b707a7 17;;; Copyright © 2019 Sebastian Schott <sschott@mailbox.org>
20c6b9da
AE
18;;;
19;;; This file is part of GNU Guix.
20;;;
21;;; GNU Guix is free software; you can redistribute it and/or modify it
22;;; under the terms of the GNU General Public License as published by
23;;; the Free Software Foundation; either version 3 of the License, or (at
24;;; your option) any later version.
25;;;
26;;; GNU Guix is distributed in the hope that it will be useful, but
27;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29;;; GNU General Public License for more details.
30;;;
31;;; You should have received a copy of the GNU General Public License
32;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33
34(define-module (gnu packages finance)
fa4f95a7
CB
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix packages)
37 #:use-module (guix download)
730553d7 38 #:use-module (guix git-download)
fa4f95a7
CB
39 #:use-module (guix build-system gnu)
40 #:use-module (guix build-system cmake)
41 #:use-module (guix build-system python)
90bb244f 42 #:use-module (guix build-system glib-or-gtk)
01b37d0f 43 #:use-module (guix build-system go)
90bb244f 44 #:use-module (guix utils)
5424f9bc 45 #:use-module (gnu packages)
054ff198
GLV
46 #:use-module (gnu packages aidc)
47 #:use-module (gnu packages autotools)
fa4f95a7
CB
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages boost)
50 #:use-module (gnu packages check)
fc54da1d 51 #:use-module (gnu packages compression)
0a551443 52 #:use-module (gnu packages crypto)
fa4f95a7
CB
53 #:use-module (gnu packages databases)
54 #:use-module (gnu packages documentation)
55 #:use-module (gnu packages dns)
56 #:use-module (gnu packages emacs)
255d1bbe 57 #:use-module (gnu packages dbm)
90bb244f
TLC
58 #:use-module (gnu packages gnome)
59 #:use-module (gnu packages glib)
df724c9c 60 #:use-module (gnu packages gnupg)
fa4f95a7
CB
61 #:use-module (gnu packages graphviz)
62 #:use-module (gnu packages groff)
90bb244f 63 #:use-module (gnu packages gtk)
fa4f95a7
CB
64 #:use-module (gnu packages libedit)
65 #:use-module (gnu packages libevent)
66 #:use-module (gnu packages libunwind)
96f5e2e9 67 #:use-module (gnu packages libusb)
fa4f95a7
CB
68 #:use-module (gnu packages linux)
69 #:use-module (gnu packages multiprecision)
0a551443 70 #:use-module (gnu packages networking)
fa4f95a7
CB
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages protobuf)
73 #:use-module (gnu packages python)
cc6f4912 74 #:use-module (gnu packages python-crypto)
589e3f4e 75 #:use-module (gnu packages python-web)
44d10b1f 76 #:use-module (gnu packages python-xyz)
fa4f95a7 77 #:use-module (gnu packages qt)
1d0865c1 78 #:use-module (gnu packages readline)
9d0c291e 79 #:use-module (gnu packages sphinx)
fa4f95a7
CB
80 #:use-module (gnu packages texinfo)
81 #:use-module (gnu packages textutils)
1ea8b3b1 82 #:use-module (gnu packages time)
fa4f95a7
CB
83 #:use-module (gnu packages tls)
84 #:use-module (gnu packages upnp)
fc54da1d 85 #:use-module (gnu packages version-control)
fa4f95a7
CB
86 #:use-module (gnu packages web)
87 #:use-module (gnu packages xml)
88 #:use-module (gnu packages gnuzilla))
20c6b9da
AE
89
90(define-public bitcoin-core
91 (package
92 (name "bitcoin-core")
1219a7cc 93 (version "0.18.1")
20c6b9da
AE
94 (source (origin
95 (method url-fetch)
96 (uri
0a59cc6e 97 (string-append "https://bitcoincore.org/bin/bitcoin-core-"
14ea30e4 98 version "/bitcoin-" version ".tar.gz"))
20c6b9da
AE
99 (sha256
100 (base32
1219a7cc 101 "15mz0gmm058gmq2gdpffbw25jpv7mksyhyfws6i7mqvrapqr6zaw"))))
20c6b9da
AE
102 (build-system gnu-build-system)
103 (native-inputs
104 `(("pkg-config" ,pkg-config)
1219a7cc
TGR
105 ("python" ,python) ; for the tests
106 ("util-linux" ,util-linux) ; provides the hexdump command for tests
0193812a 107 ("qttools" ,qttools)))
20c6b9da 108 (inputs
1219a7cc 109 `(("bdb" ,bdb-4.8) ; 4.8 required for compatibility
20c6b9da 110 ("boost" ,boost)
14ea30e4 111 ("libevent" ,libevent)
20c6b9da
AE
112 ("miniupnpc" ,miniupnpc)
113 ("openssl" ,openssl)
114 ("protobuf" ,protobuf)
0193812a 115 ("qtbase" ,qtbase)))
20c6b9da
AE
116 (arguments
117 `(#:configure-flags
118 (list
20c6b9da
AE
119 ;; Boost is not found unless specified manually.
120 (string-append "--with-boost="
0193812a
MB
121 (assoc-ref %build-inputs "boost"))
122 ;; XXX: The configure script looks up Qt paths by
123 ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick
124 ;; up executables residing in 'qttools', so we specify them here.
125 (string-append "ac_cv_path_LRELEASE="
126 (assoc-ref %build-inputs "qttools")
127 "/bin/lrelease")
128 (string-append "ac_cv_path_LUPDATE="
129 (assoc-ref %build-inputs "qttools")
130 "/bin/lupdate"))
20c6b9da
AE
131 #:phases
132 (modify-phases %standard-phases
99629e5a
CD
133 (add-before 'configure 'make-qt-deterministic
134 (lambda _
135 ;; Make Qt deterministic.
136 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
137 #t))
20c6b9da
AE
138 (add-before 'check 'set-home
139 (lambda _
1219a7cc 140 (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME
bcfc54ff
CD
141 #t))
142 (add-after 'check 'check-functional
143 (lambda _
144 (invoke "python3" "./test/functional/test_runner.py"
145 (string-append "--jobs=" (number->string (parallel-job-count))))
0e9600cb 146 #t)))))
20c6b9da
AE
147 (home-page "https://bitcoin.org/en/")
148 (synopsis "Bitcoin peer-to-peer client")
149 (description
150 "Bitcoin is a digital currency that enables instant payments to anyone
151anywhere in the world. It uses peer-to-peer technology to operate without
152central authority: managing transactions and issuing money are carried out
153collectively by the network. Bitcoin Core is the reference implementation
154of the bitcoin protocol. This package provides the Bitcoin Core command
155line client and a client based on Qt.")
156 (license license:expat)))
d3699b31 157
66b707a7
SS
158(define-public homebank
159 (package
160 (name "homebank")
161 (version "5.2.8")
162 (source (origin
163 (method url-fetch)
164 (uri (string-append "http://homebank.free.fr/public/homebank-"
165 version ".tar.gz"))
166 (sha256
167 (base32
168 "13ampiv68y30kc0p2560g3yz8whqpwnidfcnb9lndv93b9ca767y"))))
169 (build-system glib-or-gtk-build-system)
170 (native-inputs
171 `(("pkg-config" ,pkg-config)
172 ("intltool" ,intltool)))
173 (inputs
174 `(("gtk+" ,gtk+)
175 ("libsoup" ,libsoup)))
176 (arguments
177 `(#:configure-flags (list "-without-ofx"))) ; libofx is not available yet
178 (home-page "http://homebank.free.fr/")
179 (synopsis "Graphical personal accounting application")
180 (description "HomeBank allows you to manage your personal accounts at
181home. The seeks to be lightweight, simple and easy to use. It brings
182features that allow you to analyze your finances in a detailed way instantly
183and dynamically with report tools based on filtering and graphical charts.")
184 (license license:gpl2+)))
185
d3699b31
AG
186(define-public ledger
187 (package
188 (name "ledger")
9859800f 189 (version "3.1.3")
8b7ac58c
TGR
190 (source
191 (origin
192 (method git-fetch)
193 (uri (git-reference
194 (url "https://github.com/ledger/ledger.git")
195 (commit (string-append "v" version))))
196 (file-name (git-file-name name version))
197 (sha256
9859800f 198 (base32 "0bfnrqrd6wqgsngfpqi30xh6yy86pwl25iwzrqy44q31r0zl4mm3"))))
d3699b31
AG
199 (build-system cmake-build-system)
200 (arguments
f90ed028 201 `(#:configure-flags
d3699b31
AG
202 `("-DBUILD_DOCS:BOOL=ON"
203 "-DBUILD_WEB_DOCS:BOOL=ON"
d3699b31 204 "-DUSE_PYTHON:BOOL=ON"
f90ed028 205 "-DCMAKE_INSTALL_LIBDIR:PATH=lib")
d3699b31
AG
206 #:phases
207 (modify-phases %standard-phases
208 (add-before 'configure 'install-examples
209 (lambda* (#:key outputs #:allow-other-keys)
210 (let ((examples (string-append (assoc-ref outputs "out")
211 "/share/doc/ledger/examples")))
212 (install-file "test/input/sample.dat" examples)
213 (install-file "test/input/demo.ledger" examples))
214 #t))
215 (add-after 'build 'build-doc
1f3c4ba8 216 (lambda _ (invoke "make" "doc")))
d3699b31
AG
217 (add-before 'check 'check-setup
218 ;; One test fails if it can't set the timezone.
219 (lambda* (#:key inputs #:allow-other-keys)
220 (setenv "TZDIR"
221 (string-append (assoc-ref inputs "tzdata")
222 "/share/zoneinfo"))
f90ed028
RW
223 ;; Skip failing test BaselineTest_cmd-org.
224 ;; This is a known upstream issue. See
225 ;; https://github.com/ledger/ledger/issues/550
226 (setenv "ARGS" "-E BaselineTest_cmd-org")
227 #t)))))
d3699b31
AG
228 (inputs
229 `(("boost" ,boost)
230 ("gmp" ,gmp)
231 ("libedit" ,libedit)
232 ("mpfr" ,mpfr)
233 ("python" ,python-2)
234 ("tzdata" ,tzdata)
235 ("utfcpp" ,utfcpp)))
236 (native-inputs
f90ed028 237 `(("groff" ,groff)
d3699b31 238 ("texinfo" ,texinfo)))
b53a0c88 239 (home-page "https://ledger-cli.org/")
d3699b31
AG
240 (synopsis "Command-line double-entry accounting program")
241 (description
242 "Ledger is a powerful, double-entry accounting system that is
243accessed from the UNIX command-line. This may put off some users, since
244there is no flashy UI, but for those who want unparalleled reporting
245access to their data there are few alternatives.
246
247Ledger uses text files for input. It reads the files and generates
248reports; there is no other database or stored state. To use Ledger,
249you create a file of your account names and transactions, run from the
250command line with some options to specify input and requested reports, and
251get output. The output is generally plain text, though you could generate
252a graph or html instead. Ledger is simple in concept, surprisingly rich
253in ability, and easy to use.")
254 ;; There are some extra licenses in files which do not presently get
255 ;; installed when you build this package. Different versions of the GPL
256 ;; are used in the contrib and python subdirectories. The bundled version
257 ;; of utfcpp is under the Boost 1.0 license. Also the file
258 ;; `tools/update_copyright_year` has an Expat license.
259 (license (list license:bsd-3
260 license:asl2.0 ; src/strptime.cc
261 (license:non-copyleft
262 "file://src/wcwidth.cc"
f90ed028 263 "See src/wcwidth.cc in the distribution.")))))
cb0866c3 264
0df201c0
RW
265(define-public emacs-ledger-mode
266 ;; There have been no new releases since 2016.
267 (let ((commit "253a20dc62e137ed0ed8e1dd8614ecba116610ea")
268 (revision "1"))
269 (package
270 (name "emacs-ledger-mode")
271 (version (git-version "3.1.1" revision commit))
272 (source
273 (origin
274 (method git-fetch)
275 (uri (git-reference
276 (url "https://github.com/ledger/ledger-mode.git")
277 (commit commit)))
278 (file-name (git-file-name name version))
279 (sha256
280 (base32 "06wrgkqpgvk17vibrk2qikdlqn8y63jg86marp1wgmram92mb3jk"))))
281 (build-system cmake-build-system)
282 (arguments
283 `(#:modules ((guix build cmake-build-system)
284 (guix build utils)
285 (guix build emacs-utils))
286 #:imported-modules (,@%cmake-build-system-modules
287 (guix build emacs-utils))
288 #:tests? #f ; there are none
289 #:phases
290 (modify-phases %standard-phases
1c0dd730
PN
291 (add-before 'build 'patch-path
292 (lambda* (#:key inputs #:allow-other-keys)
293 (let ((ledger (assoc-ref inputs "ledger")))
294 (make-file-writable "ledger-exec.el")
295 (emacs-substitute-variables "ledger-exec.el"
296 ("ledger-binary-path" (string-append ledger "/bin/ledger"))))
297 #t))
0df201c0
RW
298 (add-after 'build 'build-doc
299 (lambda* (#:key outputs #:allow-other-keys)
300 (let ((target (string-append (assoc-ref outputs "out")
301 "/share/info")))
302 (mkdir-p target)
303 (invoke "makeinfo" "-o" target
304 "../source/doc/ledger-mode.texi"))
305 #t))
306 (add-after 'install 'relocate-elisp
307 (lambda* (#:key outputs #:allow-other-keys)
308 (let* ((site-dir (string-append (assoc-ref outputs "out")
309 "/share/emacs/site-lisp"))
310 (guix-dir (string-append site-dir "/guix.d"))
311 (orig-dir (string-append site-dir "/ledger-mode"))
312 (dest-dir (string-append guix-dir "/ledger-mode")))
313 (mkdir-p guix-dir)
314 (rename-file orig-dir dest-dir)
315 (emacs-generate-autoloads ,name dest-dir)
316 #t))))))
1c0dd730
PN
317 (inputs
318 `(("ledger" ,ledger)))
0df201c0
RW
319 (native-inputs
320 `(("emacs-minimal" ,emacs-minimal)
321 ("texinfo" ,texinfo)))
322 (home-page "https://ledger-cli.org/")
323 (synopsis "Command-line double-entry accounting program")
324 (description
325 "Ledger is a powerful, double-entry accounting system that is
326accessed from the UNIX command-line. This may put off some users, since
327there is no flashy UI, but for those who want unparalleled reporting
328access to their data there are few alternatives.
329
330Ledger uses text files for input. It reads the files and generates
331reports; there is no other database or stored state. To use Ledger,
332you create a file of your account names and transactions, run from the
333command line with some options to specify input and requested reports, and
334get output. The output is generally plain text, though you could generate
335a graph or html instead. Ledger is simple in concept, surprisingly rich
336in ability, and easy to use.
337
338This package provides the Emacs mode.")
339 (license license:gpl2+))))
340
cb0866c3
HG
341(define-public geierlein
342 (package
343 (name "geierlein")
1c21e734 344 (version "0.9.13")
cb0866c3
HG
345 (source
346 (origin
1fd71120
TGR
347 (method git-fetch)
348 (uri (git-reference
349 (url "https://github.com/stesie/geierlein.git")
350 (commit (string-append "V" version))))
351 (file-name (git-file-name name version))
cb0866c3 352 (sha256
1fd71120 353 (base32 "00zpwr3lk2vdmd60fgdwdk0xxs52wvnm19ln2m75yfphydvkglic"))))
cb0866c3
HG
354 (build-system gnu-build-system)
355 (arguments
1fd71120 356 `(#:tests? #f ; would require npm, python and a lot more
cb0866c3
HG
357 #:phases
358 (modify-phases %standard-phases
1c21e734 359 (delete 'configure) ; no configure script
cb0866c3
HG
360 (add-after 'unpack 'override-target-directory-and-tool-paths
361 (lambda* (#:key inputs outputs #:allow-other-keys)
362 (substitute* "Makefile"
363 (("prefix := .*")
364 (string-append "prefix := " (assoc-ref outputs "out") "\n"))
365 ;; Required for tests, unused for now:
366 ;;(("PYTHON := .*")
367 ;; (string-append (which "python") "\n")))
368 (("INSTALL := .*")
369 (string-append "INSTALL := " (which "install") "\n")))
370 (substitute* "bin/xgeierlein.in"
371 ;; Use icecat as XULRUNNER
372 (("^for search ")
373 (string-append "XULRUNNER=" (which "icecat") "\n"
374 "for search ")))
375 #t)))))
376 (inputs
377 `(("icecat" ,icecat)))
1e41bb1b 378 (home-page "https://stesie.github.io/geierlein/")
cb0866c3
HG
379 (synopsis "Free Elster client, for sending Germany VAT declarations")
380 (description
381 "Geierlein is a free Elster client, i.e. an application that
382allows to send VAT declarations to Germany's fiscal authorities.
383
384Currently it is *not* possible to send returns that are due annually
385(especially the income tax return) since the fiscal authority doesn't
386allow to do that off the ERiC library (which is proprietary however).
387It's not clear at the moment whether one day it will be possible to
388do so.")
389 (license license:agpl3+)))
9475fd92
CZ
390
391(define-public electrum
392 (package
393 (name "electrum")
fae0a777 394 (version "3.3.8")
9475fd92
CZ
395 (source
396 (origin
397 (method url-fetch)
398 (uri (string-append "https://download.electrum.org/"
399 version "/Electrum-"
400 version ".tar.gz"))
401 (sha256
fae0a777 402 (base32 "1g00cj1pmckd4xis8r032wmraiv3vd3zc803hnyxa2bnhj8z3bg2"))
9475fd92
CZ
403 (modules '((guix build utils)))
404 (snippet
405 '(begin
406 ;; Delete the bundled dependencies.
407 (delete-file-recursively "packages")
408 #t))))
409 (build-system python-build-system)
410 (inputs
47bd32d9
CZ
411 `(("python-pyaes" ,python-pyaes)
412 ("python-pysocks" ,python-pysocks)
413 ("python-sip" ,python-sip)
414 ("python-pyqt" ,python-pyqt)
415 ("python-ecdsa" ,python-ecdsa)
416 ("python-pbkdf2" ,python-pbkdf2)
417 ("python-requests" ,python-requests)
418 ("python-qrcode" ,python-qrcode)
419 ("python-protobuf" ,python-protobuf)
81d59f44
VC
420 ("python-aiohttp" ,python-aiohttp)
421 ("python-aiohttp-socks" ,python-aiohttp-socks)
422 ("python-aiorpcx" ,python-aiorpcx)
423 ("python-certifi" ,python-certifi)
47bd32d9
CZ
424 ("python-dnspython" ,python-dnspython)
425 ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
9475fd92 426 (arguments
47bd32d9 427 `(#:tests? #f ;; package doesn't have any tests
9475fd92
CZ
428 #:phases
429 (modify-phases %standard-phases
430 (add-before 'build 'patch-home
431 (lambda* (#:key outputs #:allow-other-keys)
432 (substitute* "setup.py"
433 (("~/.local/share")
434 (string-append (assoc-ref outputs "out") "/local/share"))))))))
435 (home-page "https://electrum.org/")
436 (synopsis "Bitcoin wallet")
437 (description
438 "Electrum is a lightweight Bitcoin client, based on a client-server
439protocol. It supports Simple Payment Verification (SPV) and deterministic key
440generation from a seed. Your secret keys are encrypted and are never sent to
441other machines/servers. Electrum does not download the Bitcoin blockchain.")
442 (license license:expat)))
8514662b 443
a0bb0217
VC
444(define-public electron-cash
445 (package
446 (inherit electrum)
447 (name "electron-cash")
d08c3e51 448 (version "4.0.12")
a0bb0217
VC
449 (source
450 (origin
d08c3e51
VC
451 (method git-fetch)
452 (uri (git-reference
453 (url "https://github.com/Electron-Cash/Electron-Cash.git")
454 (commit version)))
455 (file-name (git-file-name name version))
a0bb0217
VC
456 (sha256
457 (base32
d08c3e51 458 "0gidrx8499v7rig7ljhd70wssshs1qm0gp1553g70i323hcbf62x"))))
1ea8b3b1
VC
459 (inputs
460 `(,@(package-inputs electrum)
d08c3e51 461 ("libsecp256k1", libsecp256k1)
1ea8b3b1
VC
462 ("python-dateutil", python-dateutil)
463 ("python-dnspython", python-dnspython)))
d08c3e51 464 (arguments
e5c32a3a
VC
465 (substitute-keyword-arguments (package-arguments electrum)
466 ((#:phases phases)
467 `(modify-phases ,phases
468 (add-after 'unpack 'use-libsecp256k1-input
469 (lambda* (#:key inputs #:allow-other-keys)
470 (substitute* "lib/secp256k1.py"
471 (("library_paths = .* 'libsecp256k1.so.0'.")
472 (string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'")))))))))
a0bb0217
VC
473 (home-page "https://electroncash.org/")
474 (synopsis "Bitcoin Cash wallet")
475 (description
476 "Electroncash is a lightweight Bitcoin Cash client, based on a client-server
477protocol. It supports Simple Payment Verification (SPV) and deterministic key
478generation from a seed. Your secret keys are encrypted and are never sent to
479other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.")
480 (license license:expat)))
481
8514662b
TF
482(define-public monero
483 ;; This package bundles easylogging++ and lmdb.
fc54da1d
GLV
484 ;; The bundled easylogging++ is modified, and the changes will not be
485 ;; upstreamed.
8514662b
TF
486 ;; The devs deem the lmdb driver too critical a consenus component, to use
487 ;; the system's dynamically linked library.
488 (package
489 (name "monero")
182173b1 490 (version "0.15.0.1")
8514662b
TF
491 (source
492 (origin
0a551443
TF
493 (method git-fetch)
494 (uri (git-reference
fc54da1d
GLV
495 (url "https://github.com/monero-project/monero.git")
496 (commit (string-append "v" version))
497 (recursive? #t)))
136ff9a2 498 (file-name (git-file-name name version))
0a551443 499 (patches (search-patches "monero-use-system-miniupnpc.patch"))
fc54da1d
GLV
500 (modules '((guix build utils)))
501 (snippet
502 '(begin
503 ;; Delete bundled dependencies.
504 (for-each
505 delete-file-recursively
506 '("external/miniupnp" "external/rapidjson"
507 "external/unbound"))
508 #t))
8514662b
TF
509 (sha256
510 (base32
182173b1 511 "0sypa235lf2bbib4b71xpaw39h9304slgsvnsz8wmy9fq1zx009m"))))
8514662b
TF
512 (build-system cmake-build-system)
513 (native-inputs
514 `(("doxygen" ,doxygen)
fc54da1d 515 ("git" ,git)
8514662b 516 ("graphviz" ,graphviz)
fc54da1d 517 ("pkg-config" ,pkg-config)
b7a07bbd
GLV
518 ("protobuf" ,protobuf)
519 ("python" ,python)
fc54da1d 520 ("qttools" ,qttools)))
8514662b 521 (inputs
fc54da1d 522 `(("boost" ,boost)
0a551443 523 ("cppzmq" ,cppzmq)
8514662b 524 ("expat" ,expat)
fc54da1d 525 ("hidapi" ,hidapi)
fc54da1d 526 ("libsodium" ,libsodium)
b7a07bbd
GLV
527 ("libunwind" ,libunwind)
528 ("libusb" ,libusb)
fc54da1d 529 ("miniupnpc" ,miniupnpc)
8514662b 530 ("openssl" ,openssl)
b7a07bbd 531 ("protobuf" ,protobuf)
8514662b 532 ("rapidjson" ,rapidjson)
fc54da1d
GLV
533 ("readline" ,readline)
534 ("unbound" ,unbound)
535 ("xz" ,xz)
536 ("zeromq" ,zeromq)))
8514662b
TF
537 (arguments
538 `(#:out-of-source? #t
44554d86
GLV
539 #:configure-flags
540 (list "-DARCH=default"
541 "-DBUILD_TESTS=ON"
542 "-DBUILD_GUI_DEPS=ON"
543 (string-append "-DReadline_ROOT_DIR="
544 (assoc-ref %build-inputs "readline")))
8514662b
TF
545 #:phases
546 (modify-phases %standard-phases
547 ;; tests/core_tests need a valid HOME
548 (add-before 'configure 'set-home
549 (lambda _
550 (setenv "HOME" (getcwd))
551 #t))
fc54da1d 552 (add-after 'set-home 'change-log-path
8514662b
TF
553 (lambda _
554 (substitute* "contrib/epee/src/mlog.cpp"
555 (("epee::string_tools::get_current_module_folder\\(\\)")
fc54da1d
GLV
556 "\".bitmonero\"")
557 (("return \\(")
558 "return ((std::string(getenv(\"HOME\"))) / "))
8514662b 559 #t))
f8f2a944
GLV
560 (add-after 'change-log-path 'fix-file-permissions-for-tests
561 (lambda _
562 (for-each make-file-writable
563 (find-files "tests/data/" "wallet_9svHk1.*"))
564 #t))
fc54da1d 565 ;; Only try tests that don't need access to network or system
8514662b
TF
566 (replace 'check
567 (lambda _
cb45aad9 568 (invoke "make" "ARGS=-R 'hash|core_tests' --verbose" "test")))
8514662b
TF
569 (add-after 'check 'unit-tests
570 (lambda _
571 (let ((excluded-unit-tests
572 (string-join
573 '("AddressFromURL.Success"
574 "AddressFromURL.Failure"
575 "DNSResolver.IPv4Success"
576 "DNSResolver.DNSSECSuccess"
577 "DNSResolver.DNSSECFailure"
fc54da1d 578 "DNSResolver.GetTXTRecord"
fc54da1d 579 "is_hdd.linux_os_root")
8514662b 580 ":")))
797445be
TF
581 (invoke "tests/unit_tests/unit_tests"
582 (string-append "--gtest_filter=-"
b7a07bbd 583 excluded-unit-tests)))))
df90b6e7
GLV
584 (add-after 'install 'install-librandomx
585 (lambda* (#:key outputs #:allow-other-keys)
586 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
587 (install-file "external/randomx/librandomx.a" lib)
588 #t)))
b7a07bbd
GLV
589 (add-after 'install 'delete-dead-links
590 (lambda* (#:key outputs #:allow-other-keys)
591 (let ((out (assoc-ref outputs "out")))
592 (delete-file (string-append out "/lib/libprotobuf.so"))
593 (delete-file (string-append out "/lib/libusb-1.0.so"))
594 #t))))))
df90b6e7 595 (home-page "https://web.getmonero.org/")
8514662b
TF
596 (synopsis "Command-line interface to the Monero currency")
597 (description
fc54da1d
GLV
598 "Monero is a secure, private, untraceable currency. This package provides
599the Monero command line client and daemon.")
8514662b 600 (license license:bsd-3)))
79228a52 601
f7e24839 602(define-public monero-gui
79228a52 603 (package
f7e24839 604 (name "monero-gui")
a31b9dac 605 (version "0.15.0.1")
79228a52
TF
606 (source
607 (origin
3902bc5c
TF
608 (method git-fetch)
609 (uri (git-reference
1362e529 610 (url "https://github.com/monero-project/monero-gui.git")
3902bc5c 611 (commit (string-append "v" version))))
398a96a2 612 (file-name (git-file-name name version))
79228a52
TF
613 (sha256
614 (base32
a31b9dac 615 "08j8kkncdn57xql0bhmlzjpjkdfhqbpda1p07r797q8qi0nl4w8n"))))
79228a52
TF
616 (build-system gnu-build-system)
617 (native-inputs
1362e529 618 `(("pkg-config" ,pkg-config)
6915d20f 619 ("qttools" ,qttools)))
79228a52
TF
620 (inputs
621 `(("boost" ,boost)
1362e529 622 ("hidapi" ,hidapi)
1362e529 623 ("libsodium" ,libsodium)
b7a07bbd
GLV
624 ("libunwind" ,libunwind)
625 ("libusb" ,libusb)
79228a52 626 ("openssl" ,openssl)
b7a07bbd 627 ("protobuf" ,protobuf)
6915d20f
EF
628 ("qtbase" ,qtbase)
629 ("qtdeclarative" ,qtdeclarative)
630 ("qtgraphicaleffects" ,qtgraphicaleffects)
1362e529
GLV
631 ("qtlocation" ,qtlocation)
632 ("qtmultimedia" ,qtmultimedia)
6915d20f 633 ("qtquickcontrols" ,qtquickcontrols)
1362e529
GLV
634 ("qtquickcontrols2",qtquickcontrols2)
635 ("qtsvg" ,qtsvg)
636 ("qtwebchannel" ,qtwebchannel)
637 ("qtx11extras" ,qtx11extras)
638 ("qtxmlpatterns" ,qtxmlpatterns)
79228a52
TF
639 ("unbound" ,unbound)))
640 (propagated-inputs
641 `(("monero" ,monero)))
642 (arguments
1362e529
GLV
643 `(#:modules ((guix build gnu-build-system)
644 (guix build qt-utils)
645 (guix build utils))
646 #:imported-modules (,@%gnu-build-system-modules
647 (guix build qt-utils))
648 #:phases
79228a52
TF
649 (modify-phases %standard-phases
650 (delete 'configure)
651 (delete 'check)
652 (add-before 'build 'fix-makefile-vars
653 (lambda _
654 (substitute* "src/zxcvbn-c/makefile"
655 (("\\?=") "="))
656 #t))
657 (add-after 'fix-makefile-vars 'fix-library-paths
658 (lambda* (#:key inputs #:allow-other-keys)
659 (substitute* "monero-wallet-gui.pro"
1362e529
GLV
660 (("-L/usr/local/lib")
661 "")
79228a52 662 (("-L/usr/local/opt/openssl/lib")
1362e529 663 (string-append "-L" (assoc-ref inputs "openssl") "/lib"))
79228a52 664 (("-L/usr/local/opt/boost/lib")
1362e529 665 (string-append "-L" (assoc-ref inputs "boost") "/lib")))
79228a52
TF
666 #t))
667 (add-after 'fix-library-paths 'fix-monerod-path
668 (lambda* (#:key inputs #:allow-other-keys)
669 (substitute* "src/daemon/DaemonManager.cpp"
670 (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod")
1362e529 671 (string-append "\"" (assoc-ref inputs "monero")
79228a52
TF
672 "/bin/monerod")))
673 #t))
6915d20f
EF
674 (add-after 'fix-monerod-path 'fix-qt-paths
675 (lambda* (#:key inputs #:allow-other-keys)
1362e529
GLV
676 (substitute* "monero-wallet-gui.pro"
677 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
678 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
679 (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate")
680 (string-append (assoc-ref inputs "qttools") "/bin/lupdate")))
681 #t))
682 (add-after 'fix-qt-paths 'make-qt-deterministic
683 (lambda _
684 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
685 #t))
686 (add-after 'make-qt-deterministic 'fix-version
687 (lambda _
688 (substitute* "build.sh"
689 (("echo .*> version.js")
690 ""))
691 (with-output-to-file "version.js"
692 (lambda _
693 (format #t
694 "var GUI_VERSION = \"~a\"~@
695 var GUI_MONERO_VERSION = \"~a\"~%"
696 ,version
697 ,(package-version monero))))
698 #t))
79228a52
TF
699 (replace 'build
700 (lambda _
88d5ee44 701 (invoke "./build.sh")))
79228a52
TF
702 (add-after 'build 'fix-install-path
703 (lambda* (#:key outputs #:allow-other-keys)
704 (substitute* "build/Makefile"
705 (("/opt/monero-wallet-gui")
706 (assoc-ref outputs "out")))
707 #t))
708 (add-before 'install 'change-dir
709 (lambda _
1362e529
GLV
710 (chdir "build")
711 #t))
712 (add-after 'install 'wrap-program
713 (lambda* (#:key outputs #:allow-other-keys)
6915d20f 714 (let ((out (assoc-ref outputs "out")))
1362e529
GLV
715 (wrap-qt-program out "monero-wallet-gui"))
716 #t)))))
61fe56fc 717 (home-page "https://web.getmonero.org/")
79228a52
TF
718 (synopsis "Graphical user interface for the Monero currency")
719 (description
1362e529
GLV
720 "Monero is a secure, private, untraceable currency. This package provides
721the Monero GUI client.")
79228a52 722 (license license:bsd-3)))
00d3f022 723
f7e24839
TF
724(define-public monero-core
725 (deprecated-package "monero-core" monero-gui))
726
00d3f022
DM
727(define-public python-trezor-agent
728 (package
729 (name "python-trezor-agent")
37cff994 730 (version "0.13.1")
00d3f022
DM
731 (source
732 (origin
39a7b720
TGR
733 (method git-fetch)
734 (uri (git-reference
735 (url "https://github.com/romanz/trezor-agent.git")
736 (commit (string-append "v" version))))
737 (file-name (git-file-name name version))
00d3f022 738 (sha256
37cff994 739 (base32 "0q99vbfd3h85s8rnjipnmldixabqmmlk5w9karv6f0rhyi54f4zv"))))
00d3f022
DM
740 (build-system python-build-system)
741 (arguments
742 `(#:phases
743 (modify-phases %standard-phases
df724c9c
VC
744 (add-after 'unpack 'remove-requires-backports-shutil-which
745 ;; Remove requires on backport of shutil_which, as python 3.4+ has
746 ;; a built-in implementation supported in python-trezor-agent.
747 (lambda _
748 (substitute* "setup.py"
749 (("'backports.shutil_which>=3.5.1',") ""))
750 #t))
00d3f022
DM
751 (delete 'check)
752 (add-after 'install 'check
753 (lambda* (#:key outputs inputs #:allow-other-keys)
39a7b720 754 ;; Make installed package available for running the tests.
00d3f022
DM
755 (add-installed-pythonpath inputs outputs)
756 (invoke "py.test"))))))
757 (propagated-inputs
df724c9c
VC
758 `(("python-configargparse" ,python-configargparse)
759 ("python-daemon" ,python-daemon)
760 ("python-docutils" ,python-docutils)
761 ("python-ecdsa" ,python-ecdsa)
00d3f022 762 ("python-ed25519" ,python-ed25519)
df724c9c
VC
763 ("python-mnemonic" ,python-mnemonic)
764 ("python-pymsgbox" ,python-pymsgbox)
00d3f022 765 ("python-semver" ,python-semver)
df724c9c
VC
766 ("python-unidecode" ,python-unidecode)
767 ("python-wheel" ,python-wheel)))
00d3f022 768 (native-inputs
df724c9c
VC
769 `(("gnupg" ,gnupg)
770 ("python-mock" ,python-mock)
00d3f022
DM
771 ("python-pytest" ,python-pytest)))
772 (home-page "https://github.com/romanz/trezor-agent")
df724c9c 773 (synopsis "Use hardware wallets as SSH and GPG agent")
00d3f022
DM
774 (description
775 "@code{libagent} is a library that allows using TREZOR, Keepkey and
776Ledger Nano as a hardware SSH/GPG agent.")
777 (license license:lgpl3)))
778
6e9749ef
DM
779(define-public python-mnemonic
780 (package
781 (name "python-mnemonic")
011ec062 782 (version "0.19")
6e9749ef
DM
783 (source
784 (origin
785 (method url-fetch)
786 (uri (pypi-uri "mnemonic" version))
787 (sha256
011ec062 788 (base32 "0cd9prmdj8wzdmc7lxbf9lz0xrlkvak5ignag406mmfbn81fndsf"))))
6e9749ef
DM
789 (build-system python-build-system)
790 (propagated-inputs
791 `(("python-pbkdf2" ,python-pbkdf2)))
792 (home-page "https://github.com/trezor/python-mnemonic")
793 (synopsis "Implementation of Bitcoin BIP-0039")
794 (description "@code{mnemonic} is a library that provides an implementation
795of Bitcoin BIP-0039.")
796 (license license:expat)))
797
798(define-public python2-mnemonic
799 (package-with-python2 python-mnemonic))
96f5e2e9
DM
800
801(define-public python-ledgerblue
802 (package
803 (name "python-ledgerblue")
804 (version "0.1.16")
805 (source
806 (origin
807 (method url-fetch)
808 (uri (pypi-uri "ledgerblue" version))
809 (sha256
810 (base32
811 "010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb"))))
812 (build-system python-build-system)
813 (propagated-inputs
814 `(("python-ecpy" ,python-ecpy)
815 ("python-future" ,python-future)
816 ("python-hidapi" ,python-hidapi)
817 ("python-pillow" ,python-pillow)
818 ("python-protobuf" ,python-protobuf)
819 ("python-pycrypto" ,python-pycrypto)))
820 (home-page "https://github.com/LedgerHQ/blue-loader-python")
821 (synopsis "Python library to communicate with Ledger Blue/Nano S")
822 (description "@code{ledgerblue} is a Python library to communicate with
823Ledger Blue/Nano S.")
824 (license license:asl2.0)))
825
826(define-public python2-ledgerblue
827 (package-with-python2 python-ledgerblue))
828
1dca32e3
DM
829(define-public python-trezor
830 (package
831 (name "python-trezor")
61497aa4 832 (version "0.11.3")
1dca32e3
DM
833 (source
834 (origin
835 (method url-fetch)
836 (uri (pypi-uri "trezor" version))
837 (sha256
838 (base32
61497aa4 839 "0211m027vlvyqy83kwbjjjxalb04xgf1klv0h0y0f0yhj07516n7"))))
1dca32e3 840 (build-system python-build-system)
b4c698c8
VC
841 (arguments
842 `(#:phases
843 (modify-phases %standard-phases
844 ;; Default tests run device-specific tests which fail, only run specific tests.
845 (replace 'check
846 (lambda* (#:key inputs outputs #:allow-other-keys)
8c16b8a4
VC
847 ;; Delete tests that require network access.
848 (delete-file "trezorlib/tests/unit_tests/test_tx_api.py")
849 (invoke "python" "-m" "pytest" "--pyarg" "trezorlib.tests.unit_tests"))))))
1dca32e3 850 (propagated-inputs
b4c698c8 851 `(("python-click" ,python-click)
8c16b8a4 852 ("python-construct" ,python-construct)
b4c698c8 853 ("python-ecdsa" ,python-ecdsa)
b4c698c8 854 ("python-libusb1" ,python-libusb1)
1dca32e3 855 ("python-mnemonic" ,python-mnemonic)
b4c698c8
VC
856 ("python-pyblake2" ,python-pyblake2)
857 ("python-requests" ,python-requests)
8c16b8a4 858 ("python-typing-extensions" ,python-typing-extensions)))
1dca32e3 859 (native-inputs
61497aa4
TGR
860 ;; For tests.
861 `(("protobuf" ,protobuf)
862 ("python-black" ,python-black)
863 ("python-protobuf" ,python-protobuf)
864 ("python-isort" ,python-isort)
865 ("python-pyqt" ,python-pyqt)
866 ("python-pytest" ,python-pytest)))
1dca32e3
DM
867 (home-page "https://github.com/trezor/python-trezor")
868 (synopsis "Python library for communicating with TREZOR Hardware Wallet")
869 (description "@code{trezor} is a Python library for communicating with
870TREZOR Hardware Wallet.")
871 (license license:lgpl3)))
872
d6ddeffc
DM
873(define-public python-keepkey
874 (package
875 (name "python-keepkey")
52311b51 876 (version "6.0.3")
d6ddeffc
DM
877 (source
878 (origin
879 (method url-fetch)
880 (uri (pypi-uri "keepkey" version))
881 (sha256
882 (base32
52311b51 883 "0z3d0m6364v9dv0njs4cd5m5ai6j6v35xaaxfxl90m9vmyxy81vd"))))
d6ddeffc
DM
884 (build-system python-build-system)
885 (arguments
886 `(#:phases
887 (modify-phases %standard-phases
888 (delete 'check)
889 (add-after 'install 'check
890 (lambda* (#:key inputs outputs #:allow-other-keys)
891 (add-installed-pythonpath inputs outputs)
892 (apply invoke "python" (find-files "tests/unit" "\\.py$")))))))
893 (propagated-inputs
894 `(("python-ecdsa" ,python-ecdsa)
895 ("python-hidapi" ,python-hidapi)
02d9e5d2 896 ("python-libusb1" ,python-libusb1)
d6ddeffc
DM
897 ("python-mnemonic" ,python-mnemonic)
898 ("python-protobuf" ,python-protobuf)))
899 (home-page "https://github.com/keepkey/python-keepkey")
900 (synopsis "Python library for communicating with KeepKey Hardware Wallet")
901 (description "@code{keepkey} is a Python library for communicating with
902the KeepKey Hardware Wallet.")
903 (license license:lgpl3)))
904
905(define-public python2-keepkey
906 (package-with-python2 python-keepkey))
907
d596fea5
DM
908(define-public ledger-agent
909 (package
910 (name "ledger-agent")
911 (version "0.9.0")
912 (source
913 (origin
914 (method url-fetch)
915 (uri (pypi-uri "ledger_agent" version))
916 (sha256
917 (base32
918 "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92"))))
919 (build-system python-build-system)
920 (inputs
921 `(("python-ledgerblue" ,python-ledgerblue)
922 ("python-trezor-agent" ,python-trezor-agent)))
923 (home-page "http://github.com/romanz/trezor-agent")
924 (synopsis "Ledger as hardware SSH/GPG agent")
925 (description "This package allows using Ledger as hardware SSH/GPG agent.
926
5859fd6c
MB
927Usage for SSH: trezor-agent foo@@example.com --connect
928Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\"
d596fea5
DM
929Then set the environment variable GNUPGHOME to
930\"${HOME}/.gnupg/trezor\".")
931 (license license:lgpl3)))
47c8ea99
DM
932
933(define-public trezor-agent
934 (package
935 (name "trezor-agent")
7fafdadd 936 (version "0.10.0")
47c8ea99
DM
937 (source
938 (origin
939 (method url-fetch)
940 (uri (pypi-uri "trezor_agent" version))
941 (sha256
942 (base32
7fafdadd
VC
943 "144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8"))))
944 (arguments
945 ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
946 `(#:phases
947 (modify-phases %standard-phases
948 (add-after 'wrap 'fixup-agent-py
949 (lambda* (#:key inputs outputs #:allow-other-keys)
950 (let* ((out (assoc-ref outputs "out")))
951 ;; overwrite the wrapper with the real thing.
952 (install-file "./trezor_agent.py"
953 (string-append out "/bin"))
954 #t))))))
47c8ea99
DM
955 (build-system python-build-system)
956 (inputs
957 `(("python-trezor" ,python-trezor)
958 ("python-trezor-agent" ,python-trezor-agent)))
7fafdadd
VC
959 (native-inputs
960 `(("python-hidapi" ,python-hidapi)))
961 (home-page "https://github.com/romanz/trezor-agent")
47c8ea99
DM
962 (synopsis "Using Trezor as hardware SSH/GPG agent")
963 (description "This package allows using Trezor as a hardware SSH/GPG
964agent.")
965 (license license:lgpl3)))
50c4d676
DM
966
967(define-public keepkey-agent
968 (package
969 (name "keepkey-agent")
970 (version "0.9.0")
971 (source
972 (origin
973 (method url-fetch)
974 (uri (pypi-uri "keepkey_agent" version))
975 (sha256
976 (base32
977 "03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27"))))
978 (build-system python-build-system)
979 (inputs
980 `(("python-keepkey" ,python-keepkey)
981 ("python-trezor-agent" ,python-trezor-agent)))
982 (home-page "http://github.com/romanz/trezor-agent")
983 (synopsis "KeepKey as hardware SSH/GPG agent")
984 (description "This package allows using KeepKey as a hardware SSH/GPG
985agent.")
986 (license license:lgpl3)))
3da86c52
AP
987
988(define-public python-stdnum
989 (package
990 (name "python-stdnum")
991 (version "1.8.1")
992 (source
993 (origin
994 (method url-fetch)
995 (uri (pypi-uri "python-stdnum" version))
996 (sha256
997 (base32
998 "0hvr47q32xbyiznpmbg4r8rcvxhnf0lwf33hcpnynyik57djy5np"))))
999 (build-system python-build-system)
1000 (home-page
1001 "https://arthurdejong.org/python-stdnum/")
1002 (synopsis
1003 "Python module to handle standardized number and code formats")
1004 (description
1005 "This is a Python library that aims to provide functions to handle,
1006parse and validate standard numbers.
1007The module supports more than 100 different number formats
1008amongst which a great number of VAT and other tax numbers,
1009personal identity and company identification codes,
1010international standard numbers (ISBN, IBAN, EAN, etc.)
1011and various other formats.
1012The module also inclused implementations of the Verhoeff,
1013Luhn and family of ISO/IEC 7064 check digit algorithms. ")
1014 (license license:lgpl2.1+)))
1015
1016(define-public python2-stdnum
1017 (package-with-python2 python-stdnum))
730553d7 1018
c7299015
NG
1019(define-public python-duniterpy
1020 (package
1021 (name "python-duniterpy")
a41cd135 1022 (version "0.55.1")
c7299015
NG
1023 (source
1024 (origin
1025 (method git-fetch)
1026 ;; Pypi's default URI is missing "requirements.txt" file.
1027 (uri (git-reference
7dab3e61 1028 (url "https://git.duniter.org/clients/python/duniterpy.git")
c7299015
NG
1029 (commit version)))
1030 (file-name (git-file-name name version))
1031 (sha256
1032 (base32
a41cd135 1033 "07zsbbkzmnvyv5v0vw2d42vw3ar4iqhlidy9376ysk4ldlj1igf7"))))
c7299015 1034 (build-system python-build-system)
1427d888
NG
1035 (arguments
1036 ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
42a57df8
NG
1037 `(#:tests? #f
1038 #:phases
1039 (modify-phases %standard-phases
1040 (add-after 'build 'build-documentation
1041 (lambda _
1042 (invoke "make" "docs")))
1043 (add-after 'build-documentation 'install-documentation
1044 (lambda* (#:key inputs outputs #:allow-other-keys)
1045 (let* ((out (assoc-ref outputs "out"))
1046 (doc (string-append out "/share/doc/" ,name)))
1047 (mkdir-p doc)
1048 (copy-recursively "docs/_build/html" doc))
1049 #t)))))
1050 (native-inputs
352033f3
NG
1051 `(("sphinx" ,python-sphinx)
1052 ("sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
c7299015 1053 (propagated-inputs
352033f3
NG
1054 `(("aiohttp" ,python-aiohttp)
1055 ("attr" ,python-attr)
1056 ("base58" ,python-base58)
1057 ("jsonschema" ,python-jsonschema)
1058 ("libnacl" ,python-libnacl)
1059 ("pyaes" ,python-pyaes)
1060 ("pylibscrypt" ,python-pylibscrypt)
1061 ("pypeg2" ,python-pypeg2)))
9f1a2be2 1062 (home-page "https://git.duniter.org/clients/python/duniterpy")
c7299015
NG
1063 (synopsis "Python implementation of Duniter API")
1064 (description "@code{duniterpy} is an implementation of
207a79b2 1065@uref{https://github.com/duniter/duniter/, duniter} API. Its
c7299015
NG
1066main features are:
1067@itemize
207a79b2
NG
1068@item Support Duniter's Basic Merkle API and protocol
1069@item Asynchronous/synchronous without threads
1070@item Support HTTP, HTTPS and Web Socket transport for Basic Merkle API
1071@item Support Elasticsearch Duniter4j API
c7299015 1072@item Duniter signing key
207a79b2 1073@item Sign/verify and encrypt/decrypt messages with the Duniter credentials
c7299015
NG
1074@end itemize")
1075 (license license:gpl3+)))
1076
730553d7
NG
1077(define-public silkaj
1078 (package
1079 (name "silkaj")
5d727935 1080 (version "0.7.3")
730553d7
NG
1081 (source
1082 (origin
1083 (method git-fetch)
1084 (uri (git-reference
1085 (url "https://git.duniter.org/clients/python/silkaj.git")
1086 (commit (string-append "v" version))))
1087 (file-name (git-file-name name version))
1088 (sha256
1089 (base32
5d727935 1090 "0yk2574yb0d0k0rg7qf0pkmjidblsad04x8hhqpy9k80rvgjcr5w"))))
730553d7
NG
1091 (build-system python-build-system)
1092 (arguments
e627052f 1093 `(#:tests? #f)) ;no test
730553d7 1094 (inputs
c14b3a8d
NG
1095 `(("click" ,python-click)
1096 ("duniterpy" ,python-duniterpy)
1097 ("ipaddress" ,python-ipaddress)
1098 ("pynacl" ,python-pynacl)
f41378b7
NG
1099 ("tabulate" ,python-tabulate)
1100 ("texttable" ,python-texttable)))
730553d7
NG
1101 (home-page "https://silkaj.duniter.org/")
1102 (synopsis "Command line client for Duniter network")
1103 (description "@code{Silkaj} is a command line client for the
1104@uref{https://github.com/duniter/duniter/, Duniter} network.
1105
1106Its features are:
1107@itemize
1108@item information about currency,
1109@item issuers difficulty to generate next block,
1110@item network view of nodes,
1111@item list of last issuers,
1112@item send transactions,
1113@item get account amount.
1114@end itemize")
1115 (license license:agpl3+)))
90bb244f
TLC
1116
1117(define-public grisbi
1118 (package
1119 (name "grisbi")
1120 (version "1.2.2")
1121 (source
1122 (origin
1123 (method url-fetch)
1124 (uri (string-append
1125 "mirror://sourceforge/grisbi/grisbi%20stable/"
1126 (version-major+minor version) ".x/" version
1127 "/grisbi-" version ".tar.bz2"))
1128 (sha256
1129 (base32
1130 "1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw"))))
1131 (build-system glib-or-gtk-build-system)
1132 (arguments
1133 `(#:configure-flags (list "--without-ofx")))
1134 (propagated-inputs
1135 `(("dconf" ,dconf)))
1136 (native-inputs
1137 `(("glib" ,glib "bin") ; glib-compile-schemas
1138 ("pkg-config" ,pkg-config)
1139 ("intltool" ,intltool)))
1140 (inputs
1141 `(("gtk+" ,gtk+)
1142 ("libgsf" ,libgsf)))
1143 (synopsis "Personal accounting application")
1144 (description "Grisbi is a personal accounting application written by
1145French developers that is designed to follow French accounting rules.
1146Grisbi can manage multiple accounts, currencies and users. It manages
1147third party, expenditure and receipt categories, budgetary lines,
1148financial years, budget estimates, bankcard management and other
1149information.")
1150 (home-page "http://grisbi.org")
1151 (license license:gpl2+)))
01b37d0f 1152
1153(define-public trezord
1154 (package
1155 (name "trezord")
1156 (version "2.0.17")
1157 (source
1158 (origin
1159 (method git-fetch)
1160 (uri (git-reference
1161 (url "https://github.com/trezor/trezord-go.git")
1162 (commit (string-append "v" version))))
1163 (sha256
1164 (base32
1165 "0nqzpq0i3crh0i4r1cppja5sn3rwi1fv9afxzwzv63096x5l30a7"))
1166 (file-name (git-file-name name version))))
1167 (build-system go-build-system)
1168 (arguments
1169 '(#:import-path "github.com/trezor/trezord-go"))
1170 (home-page "https://trezor.io")
1171 (synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)")
1172 (description "This allows a Trezor hardware wallet to communicate to the
1173Trezor wallet.")
1174 (license license:lgpl3+)))
af012922 1175
1176(define-public bitcoin-abc
1177 (package
1178 (inherit bitcoin-core)
1179 (name "bitcoin-abc")
054ff198 1180 (version "0.20.7")
af012922 1181 (source (origin
1182 (method url-fetch)
1183 (uri (string-append "https://download.bitcoinabc.org/"
28d46d9d 1184 version "/src/bitcoin-abc-"
af012922 1185 version ".tar.gz"))
1186 (sha256
1187 (base32
054ff198
GLV
1188 "0py5ilfi4r8qh5r9637vwch27sqrrn0dg9rz8bccnj3lp2xpzw27"))))
1189 (native-inputs
1190 `(("autoconf" ,autoconf)
1191 ("automake" ,automake)
1192 ("libtool" ,libtool)
1193 ("pkg-config" ,pkg-config)
1194 ("python" ,python) ; for the tests
1195 ("util-linux" ,util-linux) ; provides the hexdump command for tests
1196 ("qttools" ,qttools)))
28d46d9d
GLV
1197 (inputs
1198 `(("bdb" ,bdb-5.3)
1199 ("boost" ,boost)
1200 ("libevent" ,libevent)
1201 ("miniupnpc" ,miniupnpc)
1202 ("openssl" ,openssl)
1203 ("protobuf" ,protobuf)
054ff198
GLV
1204 ("qrencode" ,qrencode)
1205 ("qtbase" ,qtbase)
1206 ("zlib" ,zlib)))
af012922 1207 (home-page "https://www.bitcoinabc.org/")
1208 (synopsis "Bitcoin ABC peer-to-peer full node for the Bitcoin Cash protocol")
1209 (description
1210 "Bitcoin Cash brings sound money to the world, fulfilling the original
1211promise of Bitcoin as Peer-to-Peer Electronic Cash. Merchants and users are
1212empowered with low fees and reliable confirmations is a digital currency that
1213enables instant payments to anyone anywhere in the world. It uses
1214peer-to-peer technology to operate without central authority: managing
1215transactions and issuing money are carried out collectively by the network.
1216As a fork it implemented changes lowering the time between blocks and now
1217offers confimations after less than 5 seconds and have significantly lower
1218fees that BTC. Bitcoin ABC is the reference implementation of the Bitcoin
1219Cash protocol. This package provides the Bitcoin Cash command line client and
1220a client based on Qt. This is a fork of Bitcoin Core.")))