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