Commit | Line | Data |
---|---|---|
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> |
369114be | 9 | ;;; Copyright © 2017, 2018, 2019, 2020 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> |
c1d79b49 | 12 | ;;; Copyright © 2018, 2019, 2020 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> |
abb37b3c | 16 | ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net> |
66b707a7 | 17 | ;;; Copyright © 2019 Sebastian Schott <sschott@mailbox.org> |
63ca1a89 | 18 | ;;; Copyright © 2020 Kei Kebreau <kkebreau@posteo.net> |
f1f72484 | 19 | ;;; Copyright © 2020 Christopher Lemmer Webber <cwebber@dustycloud.org> |
3e6aa0ce | 20 | ;;; Copyright © 2020 Tom Zander <tomz@freedommail.ch> |
795b4bca | 21 | ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> |
c7210b96 | 22 | ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net> |
20c6b9da AE |
23 | ;;; |
24 | ;;; This file is part of GNU Guix. | |
25 | ;;; | |
26 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
27 | ;;; under the terms of the GNU General Public License as published by | |
28 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
29 | ;;; your option) any later version. | |
30 | ;;; | |
31 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
32 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
33 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
34 | ;;; GNU General Public License for more details. | |
35 | ;;; | |
36 | ;;; You should have received a copy of the GNU General Public License | |
37 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
38 | ||
39 | (define-module (gnu packages finance) | |
fa4f95a7 CB |
40 | #:use-module ((guix licenses) #:prefix license:) |
41 | #:use-module (guix packages) | |
42 | #:use-module (guix download) | |
730553d7 | 43 | #:use-module (guix git-download) |
fa4f95a7 CB |
44 | #:use-module (guix build-system gnu) |
45 | #:use-module (guix build-system cmake) | |
0639a240 | 46 | #:use-module (guix build-system copy) |
805d7021 | 47 | #:use-module (guix build-system emacs) |
fa4f95a7 | 48 | #:use-module (guix build-system python) |
90bb244f | 49 | #:use-module (guix build-system glib-or-gtk) |
01b37d0f | 50 | #:use-module (guix build-system go) |
230e5db7 | 51 | #:use-module (guix build-system qt) |
90bb244f | 52 | #:use-module (guix utils) |
5424f9bc | 53 | #:use-module (gnu packages) |
054ff198 GLV |
54 | #:use-module (gnu packages aidc) |
55 | #:use-module (gnu packages autotools) | |
fa4f95a7 CB |
56 | #:use-module (gnu packages base) |
57 | #:use-module (gnu packages boost) | |
58 | #:use-module (gnu packages check) | |
fc54da1d | 59 | #:use-module (gnu packages compression) |
0a551443 | 60 | #:use-module (gnu packages crypto) |
952fe2da | 61 | #:use-module (gnu packages curl) |
fa4f95a7 | 62 | #:use-module (gnu packages databases) |
63ca1a89 | 63 | #:use-module (gnu packages docbook) |
fa4f95a7 CB |
64 | #:use-module (gnu packages documentation) |
65 | #:use-module (gnu packages dns) | |
66 | #:use-module (gnu packages emacs) | |
255d1bbe | 67 | #:use-module (gnu packages dbm) |
63ca1a89 | 68 | #:use-module (gnu packages gettext) |
90bb244f TLC |
69 | #:use-module (gnu packages gnome) |
70 | #:use-module (gnu packages glib) | |
df724c9c | 71 | #:use-module (gnu packages gnupg) |
fa4f95a7 CB |
72 | #:use-module (gnu packages graphviz) |
73 | #:use-module (gnu packages groff) | |
90bb244f | 74 | #:use-module (gnu packages gtk) |
59668de4 | 75 | #:use-module (gnu packages jemalloc) |
fa4f95a7 CB |
76 | #:use-module (gnu packages libedit) |
77 | #:use-module (gnu packages libevent) | |
78 | #:use-module (gnu packages libunwind) | |
96f5e2e9 | 79 | #:use-module (gnu packages libusb) |
fa4f95a7 | 80 | #:use-module (gnu packages linux) |
952fe2da | 81 | #:use-module (gnu packages man) |
fa4f95a7 | 82 | #:use-module (gnu packages multiprecision) |
0a551443 | 83 | #:use-module (gnu packages networking) |
fa4f95a7 | 84 | #:use-module (gnu packages pkg-config) |
952fe2da | 85 | #:use-module (gnu packages popt) |
fa4f95a7 CB |
86 | #:use-module (gnu packages protobuf) |
87 | #:use-module (gnu packages python) | |
cc6f4912 | 88 | #:use-module (gnu packages python-crypto) |
589e3f4e | 89 | #:use-module (gnu packages python-web) |
44d10b1f | 90 | #:use-module (gnu packages python-xyz) |
fa4f95a7 | 91 | #:use-module (gnu packages qt) |
1d0865c1 | 92 | #:use-module (gnu packages readline) |
9d0c291e | 93 | #:use-module (gnu packages sphinx) |
fa4f95a7 CB |
94 | #:use-module (gnu packages texinfo) |
95 | #:use-module (gnu packages textutils) | |
1ea8b3b1 | 96 | #:use-module (gnu packages time) |
fa4f95a7 CB |
97 | #:use-module (gnu packages tls) |
98 | #:use-module (gnu packages upnp) | |
99 | #:use-module (gnu packages web) | |
100 | #:use-module (gnu packages xml) | |
101 | #:use-module (gnu packages gnuzilla)) | |
20c6b9da AE |
102 | |
103 | (define-public bitcoin-core | |
104 | (package | |
105 | (name "bitcoin-core") | |
90799c35 | 106 | (version "0.19.1") |
20c6b9da | 107 | (source (origin |
8ba4d8a3 CB |
108 | (method url-fetch) |
109 | (uri | |
110 | (string-append "https://bitcoincore.org/bin/bitcoin-core-" | |
111 | version "/bitcoin-" version ".tar.gz")) | |
112 | (sha256 | |
113 | (base32 | |
114 | "1h3w7brc18145np920vy7j5ms5hym59hvr40swdjx34fbdaisngj")) | |
115 | (patches (search-patches "bitcoin-core-python-compat.patch")))) | |
20c6b9da AE |
116 | (build-system gnu-build-system) |
117 | (native-inputs | |
118 | `(("pkg-config" ,pkg-config) | |
1219a7cc TGR |
119 | ("python" ,python) ; for the tests |
120 | ("util-linux" ,util-linux) ; provides the hexdump command for tests | |
0193812a | 121 | ("qttools" ,qttools))) |
20c6b9da | 122 | (inputs |
1219a7cc | 123 | `(("bdb" ,bdb-4.8) ; 4.8 required for compatibility |
20c6b9da | 124 | ("boost" ,boost) |
14ea30e4 | 125 | ("libevent" ,libevent) |
20c6b9da AE |
126 | ("miniupnpc" ,miniupnpc) |
127 | ("openssl" ,openssl) | |
128 | ("protobuf" ,protobuf) | |
0193812a | 129 | ("qtbase" ,qtbase))) |
20c6b9da AE |
130 | (arguments |
131 | `(#:configure-flags | |
8ba4d8a3 CB |
132 | (list |
133 | ;; Boost is not found unless specified manually. | |
134 | (string-append "--with-boost=" | |
135 | (assoc-ref %build-inputs "boost")) | |
136 | ;; XXX: The configure script looks up Qt paths by | |
137 | ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick | |
138 | ;; up executables residing in 'qttools', so we specify them here. | |
139 | (string-append "ac_cv_path_LRELEASE=" | |
140 | (assoc-ref %build-inputs "qttools") | |
141 | "/bin/lrelease") | |
142 | (string-append "ac_cv_path_LUPDATE=" | |
143 | (assoc-ref %build-inputs "qttools") | |
144 | "/bin/lupdate")) | |
20c6b9da | 145 | #:phases |
8ba4d8a3 CB |
146 | (modify-phases %standard-phases |
147 | (add-before 'configure 'make-qt-deterministic | |
99629e5a | 148 | (lambda _ |
8ba4d8a3 CB |
149 | ;; Make Qt deterministic. |
150 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
151 | #t)) | |
152 | (add-before 'check 'set-home | |
20c6b9da | 153 | (lambda _ |
8ba4d8a3 CB |
154 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME |
155 | #t)) | |
156 | (add-after 'check 'check-functional | |
bcfc54ff | 157 | (lambda _ |
8ba4d8a3 CB |
158 | (invoke |
159 | "python3" "./test/functional/test_runner.py" | |
160 | (string-append "--jobs=" (number->string (parallel-job-count)))) | |
161 | #t))))) | |
20c6b9da AE |
162 | (home-page "https://bitcoin.org/en/") |
163 | (synopsis "Bitcoin peer-to-peer client") | |
164 | (description | |
165 | "Bitcoin is a digital currency that enables instant payments to anyone | |
166 | anywhere in the world. It uses peer-to-peer technology to operate without | |
167 | central authority: managing transactions and issuing money are carried out | |
168 | collectively by the network. Bitcoin Core is the reference implementation | |
169 | of the bitcoin protocol. This package provides the Bitcoin Core command | |
170 | line client and a client based on Qt.") | |
171 | (license license:expat))) | |
d3699b31 | 172 | |
66b707a7 SS |
173 | (define-public homebank |
174 | (package | |
175 | (name "homebank") | |
115a1ed2 | 176 | (version "5.4.2") |
66b707a7 SS |
177 | (source (origin |
178 | (method url-fetch) | |
179 | (uri (string-append "http://homebank.free.fr/public/homebank-" | |
180 | version ".tar.gz")) | |
181 | (sha256 | |
182 | (base32 | |
115a1ed2 | 183 | "0bkjvd819kw9cwmr3macggbg8yil3yc8v2za8pjrl6g746s89kn6")))) |
66b707a7 SS |
184 | (build-system glib-or-gtk-build-system) |
185 | (native-inputs | |
186 | `(("pkg-config" ,pkg-config) | |
187 | ("intltool" ,intltool))) | |
188 | (inputs | |
189 | `(("gtk+" ,gtk+) | |
c7210b96 | 190 | ("libofx" ,libofx) |
66b707a7 | 191 | ("libsoup" ,libsoup))) |
66b707a7 SS |
192 | (home-page "http://homebank.free.fr/") |
193 | (synopsis "Graphical personal accounting application") | |
194 | (description "HomeBank allows you to manage your personal accounts at | |
195 | home. The seeks to be lightweight, simple and easy to use. It brings | |
196 | features that allow you to analyze your finances in a detailed way instantly | |
197 | and dynamically with report tools based on filtering and graphical charts.") | |
198 | (license license:gpl2+))) | |
199 | ||
d3699b31 AG |
200 | (define-public ledger |
201 | (package | |
202 | (name "ledger") | |
e957bab7 | 203 | (version "3.2.1") |
8b7ac58c TGR |
204 | (source |
205 | (origin | |
206 | (method git-fetch) | |
207 | (uri (git-reference | |
b0e7b699 | 208 | (url "https://github.com/ledger/ledger") |
8b7ac58c TGR |
209 | (commit (string-append "v" version)))) |
210 | (file-name (git-file-name name version)) | |
211 | (sha256 | |
e957bab7 | 212 | (base32 "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6")))) |
d3699b31 AG |
213 | (build-system cmake-build-system) |
214 | (arguments | |
795b4bca MB |
215 | `(#:modules (,@%cmake-build-system-modules |
216 | ((guix build python-build-system) #:select (python-version))) | |
217 | #:imported-modules (,@%cmake-build-system-modules | |
218 | (guix build python-build-system)) | |
219 | #:configure-flags | |
d3699b31 AG |
220 | `("-DBUILD_DOCS:BOOL=ON" |
221 | "-DBUILD_WEB_DOCS:BOOL=ON" | |
d3699b31 | 222 | "-DUSE_PYTHON:BOOL=ON" |
f90ed028 | 223 | "-DCMAKE_INSTALL_LIBDIR:PATH=lib") |
d3699b31 | 224 | #:phases |
795b4bca MB |
225 | (modify-phases (@ (guix build cmake-build-system) %standard-phases) |
226 | (add-after 'unpack 'fix-python-installation-directory | |
227 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
228 | ;; By default the package attempts to install its Python bindings | |
229 | ;; to the Python store directory, which obviously does not work. | |
230 | ;; Passing -DPython_SITEARCH in #:configure-flags has no effect. | |
231 | (let ((python-version (python-version (assoc-ref inputs "python"))) | |
232 | (out (assoc-ref outputs "out"))) | |
233 | (substitute* "src/CMakeLists.txt" | |
234 | (("DESTINATION \\$\\{Python_SITEARCH\\}") | |
235 | (string-append "DESTINATION " out "/lib/python" | |
236 | python-version "/site-packages"))) | |
237 | #t))) | |
d3699b31 AG |
238 | (add-before 'configure 'install-examples |
239 | (lambda* (#:key outputs #:allow-other-keys) | |
240 | (let ((examples (string-append (assoc-ref outputs "out") | |
241 | "/share/doc/ledger/examples"))) | |
242 | (install-file "test/input/sample.dat" examples) | |
243 | (install-file "test/input/demo.ledger" examples)) | |
244 | #t)) | |
245 | (add-after 'build 'build-doc | |
1f3c4ba8 | 246 | (lambda _ (invoke "make" "doc"))) |
d3699b31 AG |
247 | (add-before 'check 'check-setup |
248 | ;; One test fails if it can't set the timezone. | |
249 | (lambda* (#:key inputs #:allow-other-keys) | |
250 | (setenv "TZDIR" | |
251 | (string-append (assoc-ref inputs "tzdata") | |
252 | "/share/zoneinfo")) | |
f90ed028 RW |
253 | ;; Skip failing test BaselineTest_cmd-org. |
254 | ;; This is a known upstream issue. See | |
255 | ;; https://github.com/ledger/ledger/issues/550 | |
256 | (setenv "ARGS" "-E BaselineTest_cmd-org") | |
257 | #t))))) | |
d3699b31 AG |
258 | (inputs |
259 | `(("boost" ,boost) | |
260 | ("gmp" ,gmp) | |
261 | ("libedit" ,libedit) | |
262 | ("mpfr" ,mpfr) | |
7b07852d | 263 | ("python" ,python) |
d3699b31 AG |
264 | ("utfcpp" ,utfcpp))) |
265 | (native-inputs | |
f90ed028 | 266 | `(("groff" ,groff) |
5a8ef3c1 LF |
267 | ("texinfo" ,texinfo) |
268 | ("tzdata" ,tzdata-for-tests))) | |
b53a0c88 | 269 | (home-page "https://ledger-cli.org/") |
d3699b31 AG |
270 | (synopsis "Command-line double-entry accounting program") |
271 | (description | |
272 | "Ledger is a powerful, double-entry accounting system that is | |
273 | accessed from the UNIX command-line. This may put off some users, since | |
274 | there is no flashy UI, but for those who want unparalleled reporting | |
275 | access to their data there are few alternatives. | |
276 | ||
277 | Ledger uses text files for input. It reads the files and generates | |
278 | reports; there is no other database or stored state. To use Ledger, | |
279 | you create a file of your account names and transactions, run from the | |
280 | command line with some options to specify input and requested reports, and | |
281 | get output. The output is generally plain text, though you could generate | |
282 | a graph or html instead. Ledger is simple in concept, surprisingly rich | |
283 | in ability, and easy to use.") | |
284 | ;; There are some extra licenses in files which do not presently get | |
285 | ;; installed when you build this package. Different versions of the GPL | |
286 | ;; are used in the contrib and python subdirectories. The bundled version | |
287 | ;; of utfcpp is under the Boost 1.0 license. Also the file | |
288 | ;; `tools/update_copyright_year` has an Expat license. | |
289 | (license (list license:bsd-3 | |
290 | license:asl2.0 ; src/strptime.cc | |
291 | (license:non-copyleft | |
292 | "file://src/wcwidth.cc" | |
f90ed028 | 293 | "See src/wcwidth.cc in the distribution."))))) |
cb0866c3 | 294 | |
0df201c0 RW |
295 | (define-public emacs-ledger-mode |
296 | ;; There have been no new releases since 2016. | |
297 | (let ((commit "253a20dc62e137ed0ed8e1dd8614ecba116610ea") | |
298 | (revision "1")) | |
299 | (package | |
300 | (name "emacs-ledger-mode") | |
301 | (version (git-version "3.1.1" revision commit)) | |
302 | (source | |
303 | (origin | |
304 | (method git-fetch) | |
305 | (uri (git-reference | |
b0e7b699 | 306 | (url "https://github.com/ledger/ledger-mode") |
0df201c0 RW |
307 | (commit commit))) |
308 | (file-name (git-file-name name version)) | |
309 | (sha256 | |
310 | (base32 "06wrgkqpgvk17vibrk2qikdlqn8y63jg86marp1wgmram92mb3jk")))) | |
311 | (build-system cmake-build-system) | |
312 | (arguments | |
313 | `(#:modules ((guix build cmake-build-system) | |
314 | (guix build utils) | |
315 | (guix build emacs-utils)) | |
316 | #:imported-modules (,@%cmake-build-system-modules | |
317 | (guix build emacs-utils)) | |
318 | #:tests? #f ; there are none | |
319 | #:phases | |
320 | (modify-phases %standard-phases | |
2c50e52a BG |
321 | (add-after 'unpack 'patch-site-dir |
322 | (lambda _ | |
323 | (substitute* "CMakeLists.txt" | |
324 | (("DESTINATION share/emacs/site-lisp/ledger-mode") | |
325 | "DESTINATION share/emacs/site-lisp")) | |
326 | #t)) | |
1c0dd730 PN |
327 | (add-before 'build 'patch-path |
328 | (lambda* (#:key inputs #:allow-other-keys) | |
329 | (let ((ledger (assoc-ref inputs "ledger"))) | |
330 | (make-file-writable "ledger-exec.el") | |
331 | (emacs-substitute-variables "ledger-exec.el" | |
332 | ("ledger-binary-path" (string-append ledger "/bin/ledger")))) | |
333 | #t)) | |
0df201c0 RW |
334 | (add-after 'build 'build-doc |
335 | (lambda* (#:key outputs #:allow-other-keys) | |
336 | (let ((target (string-append (assoc-ref outputs "out") | |
337 | "/share/info"))) | |
338 | (mkdir-p target) | |
339 | (invoke "makeinfo" "-o" target | |
340 | "../source/doc/ledger-mode.texi")) | |
341 | #t)) | |
2c50e52a | 342 | (add-after 'install 'generate-autoload |
0df201c0 RW |
343 | (lambda* (#:key outputs #:allow-other-keys) |
344 | (let* ((site-dir (string-append (assoc-ref outputs "out") | |
2c50e52a BG |
345 | "/share/emacs/site-lisp"))) |
346 | (emacs-generate-autoloads ,name site-dir)) | |
347 | #t))))) | |
1c0dd730 PN |
348 | (inputs |
349 | `(("ledger" ,ledger))) | |
0df201c0 RW |
350 | (native-inputs |
351 | `(("emacs-minimal" ,emacs-minimal) | |
352 | ("texinfo" ,texinfo))) | |
353 | (home-page "https://ledger-cli.org/") | |
354 | (synopsis "Command-line double-entry accounting program") | |
355 | (description | |
356 | "Ledger is a powerful, double-entry accounting system that is | |
357 | accessed from the UNIX command-line. This may put off some users, since | |
358 | there is no flashy UI, but for those who want unparalleled reporting | |
359 | access to their data there are few alternatives. | |
360 | ||
361 | Ledger uses text files for input. It reads the files and generates | |
362 | reports; there is no other database or stored state. To use Ledger, | |
363 | you create a file of your account names and transactions, run from the | |
364 | command line with some options to specify input and requested reports, and | |
365 | get output. The output is generally plain text, though you could generate | |
366 | a graph or html instead. Ledger is simple in concept, surprisingly rich | |
367 | in ability, and easy to use. | |
368 | ||
369 | This package provides the Emacs mode.") | |
370 | (license license:gpl2+)))) | |
371 | ||
cb0866c3 HG |
372 | (define-public geierlein |
373 | (package | |
374 | (name "geierlein") | |
1c21e734 | 375 | (version "0.9.13") |
cb0866c3 HG |
376 | (source |
377 | (origin | |
1fd71120 TGR |
378 | (method git-fetch) |
379 | (uri (git-reference | |
b0e7b699 | 380 | (url "https://github.com/stesie/geierlein") |
1fd71120 TGR |
381 | (commit (string-append "V" version)))) |
382 | (file-name (git-file-name name version)) | |
cb0866c3 | 383 | (sha256 |
1fd71120 | 384 | (base32 "00zpwr3lk2vdmd60fgdwdk0xxs52wvnm19ln2m75yfphydvkglic")))) |
cb0866c3 HG |
385 | (build-system gnu-build-system) |
386 | (arguments | |
1fd71120 | 387 | `(#:tests? #f ; would require npm, python and a lot more |
cb0866c3 HG |
388 | #:phases |
389 | (modify-phases %standard-phases | |
1c21e734 | 390 | (delete 'configure) ; no configure script |
cb0866c3 HG |
391 | (add-after 'unpack 'override-target-directory-and-tool-paths |
392 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
393 | (substitute* "Makefile" | |
394 | (("prefix := .*") | |
395 | (string-append "prefix := " (assoc-ref outputs "out") "\n")) | |
396 | ;; Required for tests, unused for now: | |
397 | ;;(("PYTHON := .*") | |
398 | ;; (string-append (which "python") "\n"))) | |
399 | (("INSTALL := .*") | |
400 | (string-append "INSTALL := " (which "install") "\n"))) | |
401 | (substitute* "bin/xgeierlein.in" | |
402 | ;; Use icecat as XULRUNNER | |
403 | (("^for search ") | |
404 | (string-append "XULRUNNER=" (which "icecat") "\n" | |
405 | "for search "))) | |
406 | #t))))) | |
407 | (inputs | |
408 | `(("icecat" ,icecat))) | |
1e41bb1b | 409 | (home-page "https://stesie.github.io/geierlein/") |
cb0866c3 HG |
410 | (synopsis "Free Elster client, for sending Germany VAT declarations") |
411 | (description | |
412 | "Geierlein is a free Elster client, i.e. an application that | |
0fed2984 | 413 | sends VAT declarations to Germany's fiscal authorities. |
cb0866c3 HG |
414 | |
415 | Currently it is *not* possible to send returns that are due annually | |
416 | (especially the income tax return) since the fiscal authority doesn't | |
2918485c | 417 | allow doing that off the ERiC library (which is proprietary however). |
cb0866c3 HG |
418 | It's not clear at the moment whether one day it will be possible to |
419 | do so.") | |
420 | (license license:agpl3+))) | |
9475fd92 CZ |
421 | |
422 | (define-public electrum | |
423 | (package | |
424 | (name "electrum") | |
fae0a777 | 425 | (version "3.3.8") |
9475fd92 CZ |
426 | (source |
427 | (origin | |
428 | (method url-fetch) | |
429 | (uri (string-append "https://download.electrum.org/" | |
430 | version "/Electrum-" | |
431 | version ".tar.gz")) | |
432 | (sha256 | |
fae0a777 | 433 | (base32 "1g00cj1pmckd4xis8r032wmraiv3vd3zc803hnyxa2bnhj8z3bg2")) |
9475fd92 CZ |
434 | (modules '((guix build utils))) |
435 | (snippet | |
436 | '(begin | |
437 | ;; Delete the bundled dependencies. | |
438 | (delete-file-recursively "packages") | |
439 | #t)))) | |
440 | (build-system python-build-system) | |
441 | (inputs | |
47bd32d9 CZ |
442 | `(("python-pyaes" ,python-pyaes) |
443 | ("python-pysocks" ,python-pysocks) | |
444 | ("python-sip" ,python-sip) | |
445 | ("python-pyqt" ,python-pyqt) | |
446 | ("python-ecdsa" ,python-ecdsa) | |
447 | ("python-pbkdf2" ,python-pbkdf2) | |
448 | ("python-requests" ,python-requests) | |
449 | ("python-qrcode" ,python-qrcode) | |
450 | ("python-protobuf" ,python-protobuf) | |
81d59f44 VC |
451 | ("python-aiohttp" ,python-aiohttp) |
452 | ("python-aiohttp-socks" ,python-aiohttp-socks) | |
453 | ("python-aiorpcx" ,python-aiorpcx) | |
454 | ("python-certifi" ,python-certifi) | |
47bd32d9 CZ |
455 | ("python-dnspython" ,python-dnspython) |
456 | ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix))) | |
9475fd92 | 457 | (arguments |
8ee3e4d9 | 458 | `(#:tests? #f ; no tests |
9475fd92 CZ |
459 | #:phases |
460 | (modify-phases %standard-phases | |
461 | (add-before 'build 'patch-home | |
462 | (lambda* (#:key outputs #:allow-other-keys) | |
463 | (substitute* "setup.py" | |
464 | (("~/.local/share") | |
8ee3e4d9 TGR |
465 | (string-append (assoc-ref outputs "out") "/local/share"))) |
466 | #t))))) | |
9475fd92 CZ |
467 | (home-page "https://electrum.org/") |
468 | (synopsis "Bitcoin wallet") | |
469 | (description | |
470 | "Electrum is a lightweight Bitcoin client, based on a client-server | |
471 | protocol. It supports Simple Payment Verification (SPV) and deterministic key | |
472 | generation from a seed. Your secret keys are encrypted and are never sent to | |
473 | other machines/servers. Electrum does not download the Bitcoin blockchain.") | |
474 | (license license:expat))) | |
8514662b | 475 | |
a0bb0217 VC |
476 | (define-public electron-cash |
477 | (package | |
a0bb0217 | 478 | (name "electron-cash") |
369114be | 479 | (version "4.0.15") |
a0bb0217 VC |
480 | (source |
481 | (origin | |
d08c3e51 VC |
482 | (method git-fetch) |
483 | (uri (git-reference | |
b0e7b699 | 484 | (url "https://github.com/Electron-Cash/Electron-Cash") |
d08c3e51 VC |
485 | (commit version))) |
486 | (file-name (git-file-name name version)) | |
a0bb0217 | 487 | (sha256 |
369114be | 488 | (base32 "0bvj64fdxpi0dbivhgv509kqq503zjp7r7xckl8q5c48j5h1zik2")))) |
e6a0cd9a | 489 | (build-system python-build-system) |
1ea8b3b1 | 490 | (inputs |
e6a0cd9a | 491 | `(("libevent" ,libevent) |
d08c3e51 | 492 | ("libsecp256k1", libsecp256k1) |
e6a0cd9a GLV |
493 | ("openssl" ,openssl) |
494 | ("python-cython" ,python-cython) | |
1ea8b3b1 | 495 | ("python-dateutil", python-dateutil) |
e6a0cd9a GLV |
496 | ("python-dnspython" ,python-dnspython) |
497 | ("python-ecdsa" ,python-ecdsa) | |
498 | ("python-hidapi" ,python-hidapi) | |
499 | ("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix) | |
500 | ("python-keepkey" ,python-keepkey) | |
501 | ("python-protobuf" ,python-protobuf) | |
502 | ("python-pyaes" ,python-pyaes) | |
503 | ("python-pyqt" ,python-pyqt) | |
504 | ("python-pysocks" ,python-pysocks) | |
505 | ("python-qrcode" ,python-qrcode) | |
506 | ("python-requests" ,python-requests) | |
507 | ("python-stem" ,python-stem) | |
508 | ("python-trezor" ,python-trezor) | |
509 | ("qtsvg" ,qtsvg) | |
510 | ("zlib" ,zlib))) | |
d08c3e51 | 511 | (arguments |
110888f8 | 512 | `(#:tests? #f ; no tests |
e6a0cd9a GLV |
513 | #:modules ((guix build python-build-system) |
514 | (guix build qt-utils) | |
515 | (guix build utils)) | |
516 | #:imported-modules (,@%python-build-system-modules | |
517 | (guix build qt-utils)) | |
518 | #:phases | |
519 | (modify-phases %standard-phases | |
44da8733 | 520 | (add-after 'unpack 'create-output-directories |
e6a0cd9a | 521 | (lambda* (#:key outputs #:allow-other-keys) |
44da8733 TGR |
522 | ;; setup.py installs to ~/.local/share if this doesn't exist. |
523 | (mkdir-p (string-append (assoc-ref outputs "out") "/share")) | |
110888f8 | 524 | #t)) |
e6a0cd9a GLV |
525 | (add-after 'unpack 'use-libsecp256k1-input |
526 | (lambda* (#:key inputs #:allow-other-keys) | |
527 | (substitute* "lib/secp256k1.py" | |
528 | (("library_paths = .* 'libsecp256k1.so.0'.") | |
110888f8 TGR |
529 | (string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'"))) |
530 | #t)) | |
e6a0cd9a GLV |
531 | (add-after 'install 'wrap-qt |
532 | (lambda* (#:key outputs #:allow-other-keys) | |
533 | (wrap-qt-program (assoc-ref outputs "out") "electron-cash") | |
534 | #t))))) | |
a0bb0217 VC |
535 | (home-page "https://electroncash.org/") |
536 | (synopsis "Bitcoin Cash wallet") | |
537 | (description | |
538 | "Electroncash is a lightweight Bitcoin Cash client, based on a client-server | |
539 | protocol. It supports Simple Payment Verification (SPV) and deterministic key | |
540 | generation from a seed. Your secret keys are encrypted and are never sent to | |
541 | other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.") | |
542 | (license license:expat))) | |
543 | ||
8514662b TF |
544 | (define-public monero |
545 | ;; This package bundles easylogging++ and lmdb. | |
fc54da1d GLV |
546 | ;; The bundled easylogging++ is modified, and the changes will not be |
547 | ;; upstreamed. | |
8514662b TF |
548 | ;; The devs deem the lmdb driver too critical a consenus component, to use |
549 | ;; the system's dynamically linked library. | |
550 | (package | |
551 | (name "monero") | |
8809696e | 552 | (version "0.16.0.3") |
8514662b TF |
553 | (source |
554 | (origin | |
0a551443 TF |
555 | (method git-fetch) |
556 | (uri (git-reference | |
b0e7b699 | 557 | (url "https://github.com/monero-project/monero") |
fc54da1d GLV |
558 | (commit (string-append "v" version)) |
559 | (recursive? #t))) | |
136ff9a2 | 560 | (file-name (git-file-name name version)) |
0a551443 | 561 | (patches (search-patches "monero-use-system-miniupnpc.patch")) |
fc54da1d GLV |
562 | (modules '((guix build utils))) |
563 | (snippet | |
564 | '(begin | |
565 | ;; Delete bundled dependencies. | |
566 | (for-each | |
567 | delete-file-recursively | |
568 | '("external/miniupnp" "external/rapidjson" | |
569 | "external/unbound")) | |
570 | #t)) | |
8514662b | 571 | (sha256 |
8809696e | 572 | (base32 "1r9x3712vhb24dxxirfiwj5f9x0h4m7x0ngiiavf5983dfdlgz33")))) |
8514662b TF |
573 | (build-system cmake-build-system) |
574 | (native-inputs | |
575 | `(("doxygen" ,doxygen) | |
8514662b | 576 | ("graphviz" ,graphviz) |
fc54da1d | 577 | ("pkg-config" ,pkg-config) |
b7a07bbd GLV |
578 | ("protobuf" ,protobuf) |
579 | ("python" ,python) | |
fc54da1d | 580 | ("qttools" ,qttools))) |
8514662b | 581 | (inputs |
fc54da1d | 582 | `(("boost" ,boost) |
0a551443 | 583 | ("cppzmq" ,cppzmq) |
8514662b | 584 | ("expat" ,expat) |
fc54da1d | 585 | ("hidapi" ,hidapi) |
fc54da1d | 586 | ("libsodium" ,libsodium) |
b7a07bbd GLV |
587 | ("libunwind" ,libunwind) |
588 | ("libusb" ,libusb) | |
fc54da1d | 589 | ("miniupnpc" ,miniupnpc) |
8514662b | 590 | ("openssl" ,openssl) |
b7a07bbd | 591 | ("protobuf" ,protobuf) |
8514662b | 592 | ("rapidjson" ,rapidjson) |
fc54da1d GLV |
593 | ("readline" ,readline) |
594 | ("unbound" ,unbound) | |
595 | ("xz" ,xz) | |
596 | ("zeromq" ,zeromq))) | |
8514662b TF |
597 | (arguments |
598 | `(#:out-of-source? #t | |
44554d86 GLV |
599 | #:configure-flags |
600 | (list "-DARCH=default" | |
601 | "-DBUILD_TESTS=ON" | |
602 | "-DBUILD_GUI_DEPS=ON" | |
603 | (string-append "-DReadline_ROOT_DIR=" | |
604 | (assoc-ref %build-inputs "readline"))) | |
8514662b TF |
605 | #:phases |
606 | (modify-phases %standard-phases | |
607 | ;; tests/core_tests need a valid HOME | |
608 | (add-before 'configure 'set-home | |
609 | (lambda _ | |
610 | (setenv "HOME" (getcwd)) | |
611 | #t)) | |
fc54da1d | 612 | (add-after 'set-home 'change-log-path |
8514662b TF |
613 | (lambda _ |
614 | (substitute* "contrib/epee/src/mlog.cpp" | |
615 | (("epee::string_tools::get_current_module_folder\\(\\)") | |
fc54da1d GLV |
616 | "\".bitmonero\"") |
617 | (("return \\(") | |
618 | "return ((std::string(getenv(\"HOME\"))) / ")) | |
8514662b | 619 | #t)) |
f8f2a944 GLV |
620 | (add-after 'change-log-path 'fix-file-permissions-for-tests |
621 | (lambda _ | |
622 | (for-each make-file-writable | |
623 | (find-files "tests/data/" "wallet_9svHk1.*")) | |
624 | #t)) | |
fc54da1d | 625 | ;; Only try tests that don't need access to network or system |
8514662b TF |
626 | (replace 'check |
627 | (lambda _ | |
2e5044cf GLV |
628 | ;; Core tests sometimes fail, at least on i686-linux. |
629 | ;; Let's disable them for now and just try hash tests | |
630 | ;; and unit tests. | |
631 | ;; (invoke "make" "ARGS=-R 'hash|core_tests' --verbose" "test"))) | |
632 | (invoke "make" "ARGS=-R 'hash' --verbose" "test"))) | |
8514662b TF |
633 | (add-after 'check 'unit-tests |
634 | (lambda _ | |
635 | (let ((excluded-unit-tests | |
636 | (string-join | |
637 | '("AddressFromURL.Success" | |
638 | "AddressFromURL.Failure" | |
639 | "DNSResolver.IPv4Success" | |
640 | "DNSResolver.DNSSECSuccess" | |
641 | "DNSResolver.DNSSECFailure" | |
fc54da1d | 642 | "DNSResolver.GetTXTRecord" |
fc54da1d | 643 | "is_hdd.linux_os_root") |
8514662b | 644 | ":"))) |
797445be TF |
645 | (invoke "tests/unit_tests/unit_tests" |
646 | (string-append "--gtest_filter=-" | |
b7a07bbd | 647 | excluded-unit-tests))))) |
df90b6e7 GLV |
648 | (add-after 'install 'install-librandomx |
649 | (lambda* (#:key outputs #:allow-other-keys) | |
650 | (let ((lib (string-append (assoc-ref outputs "out") "/lib"))) | |
651 | (install-file "external/randomx/librandomx.a" lib) | |
652 | #t))) | |
b7a07bbd GLV |
653 | (add-after 'install 'delete-dead-links |
654 | (lambda* (#:key outputs #:allow-other-keys) | |
655 | (let ((out (assoc-ref outputs "out"))) | |
656 | (delete-file (string-append out "/lib/libprotobuf.so")) | |
657 | (delete-file (string-append out "/lib/libusb-1.0.so")) | |
658 | #t)))))) | |
df90b6e7 | 659 | (home-page "https://web.getmonero.org/") |
8514662b TF |
660 | (synopsis "Command-line interface to the Monero currency") |
661 | (description | |
fc54da1d GLV |
662 | "Monero is a secure, private, untraceable currency. This package provides |
663 | the Monero command line client and daemon.") | |
8514662b | 664 | (license license:bsd-3))) |
79228a52 | 665 | |
f7e24839 | 666 | (define-public monero-gui |
79228a52 | 667 | (package |
f7e24839 | 668 | (name "monero-gui") |
39cc879a | 669 | (version "0.16.0.3") |
79228a52 TF |
670 | (source |
671 | (origin | |
3902bc5c TF |
672 | (method git-fetch) |
673 | (uri (git-reference | |
b0e7b699 | 674 | (url "https://github.com/monero-project/monero-gui") |
3902bc5c | 675 | (commit (string-append "v" version)))) |
398a96a2 | 676 | (file-name (git-file-name name version)) |
79228a52 | 677 | (sha256 |
39cc879a | 678 | (base32 "0iwjp8x5swy8i8pzrlm5v55awhm54cf48pm1vz98lcq361lhfzk6")))) |
230e5db7 | 679 | (build-system qt-build-system) |
79228a52 | 680 | (native-inputs |
51bd1f5b GLV |
681 | `(("monero-source" ,(package-source monero)) |
682 | ("pkg-config" ,pkg-config) | |
6915d20f | 683 | ("qttools" ,qttools))) |
79228a52 TF |
684 | (inputs |
685 | `(("boost" ,boost) | |
1362e529 | 686 | ("hidapi" ,hidapi) |
51bd1f5b | 687 | ("libgcrypt" ,libgcrypt) |
1362e529 | 688 | ("libsodium" ,libsodium) |
b7a07bbd GLV |
689 | ("libunwind" ,libunwind) |
690 | ("libusb" ,libusb) | |
79228a52 | 691 | ("openssl" ,openssl) |
b7a07bbd | 692 | ("protobuf" ,protobuf) |
6915d20f EF |
693 | ("qtbase" ,qtbase) |
694 | ("qtdeclarative" ,qtdeclarative) | |
695 | ("qtgraphicaleffects" ,qtgraphicaleffects) | |
1362e529 GLV |
696 | ("qtlocation" ,qtlocation) |
697 | ("qtmultimedia" ,qtmultimedia) | |
6915d20f | 698 | ("qtquickcontrols" ,qtquickcontrols) |
1362e529 GLV |
699 | ("qtquickcontrols2",qtquickcontrols2) |
700 | ("qtsvg" ,qtsvg) | |
1362e529 | 701 | ("qtxmlpatterns" ,qtxmlpatterns) |
79228a52 TF |
702 | ("unbound" ,unbound))) |
703 | (propagated-inputs | |
704 | `(("monero" ,monero))) | |
705 | (arguments | |
230e5db7 | 706 | `(#:tests? #f ; No tests |
1362e529 | 707 | #:phases |
79228a52 | 708 | (modify-phases %standard-phases |
51bd1f5b GLV |
709 | (add-after 'unpack 'get-monero-extra-files |
710 | ;; Some headers and GnuPG public keys of the monero package source | |
711 | ;; code are required to build the GUI. | |
712 | (lambda* (#:key inputs #:allow-other-keys) | |
713 | (invoke "tar" "-xv" "--wildcards" "--strip-components=1" | |
714 | "-C" "monero" | |
715 | "-f" (assoc-ref inputs "monero-source") | |
716 | "*.asc" "*.h") | |
717 | #t)) | |
718 | (add-after 'get-monero-extra-files 'fix-makefile-vars | |
79228a52 TF |
719 | (lambda _ |
720 | (substitute* "src/zxcvbn-c/makefile" | |
721 | (("\\?=") "=")) | |
722 | #t)) | |
230e5db7 GLV |
723 | (add-after 'fix-makefile-vars 'fix-paths |
724 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
725 | (let ((boost (assoc-ref inputs "boost")) | |
726 | (monero (assoc-ref inputs "monero")) | |
727 | (openssl (assoc-ref inputs "openssl")) | |
728 | (qttools (assoc-ref inputs "qttools")) | |
729 | (out (assoc-ref outputs "out"))) | |
730 | (substitute* "monero-wallet-gui.pro" | |
731 | (("-L/usr/local/lib") | |
732 | "") | |
733 | (("-L/usr/local/opt/openssl/lib") | |
734 | (string-append "-L" openssl "/lib")) | |
735 | (("-L/usr/local/opt/boost/lib") | |
736 | (string-append "-L" boost "/lib")) | |
737 | (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") | |
738 | (string-append qttools "/bin/lrelease")) | |
739 | (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate") | |
740 | (string-append qttools "/bin/lupdate"))) | |
741 | (substitute* "deployment.pri" | |
742 | (("/opt/\\$\\$\\{TARGET\\}/bin") | |
743 | (string-append out "/bin"))) | |
744 | (substitute* "src/daemon/DaemonManager.cpp" | |
745 | (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod") | |
746 | (string-append "\"" monero "/bin/monerod"))) | |
747 | #t))) | |
748 | (add-after 'fix-paths 'make-qt-deterministic | |
1362e529 GLV |
749 | (lambda _ |
750 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
751 | #t)) | |
752 | (add-after 'make-qt-deterministic 'fix-version | |
753 | (lambda _ | |
754 | (substitute* "build.sh" | |
755 | (("echo .*> version.js") | |
756 | "")) | |
757 | (with-output-to-file "version.js" | |
758 | (lambda _ | |
759 | (format #t | |
760 | "var GUI_VERSION = \"~a\"~@ | |
761 | var GUI_MONERO_VERSION = \"~a\"~%" | |
762 | ,version | |
763 | ,(package-version monero)))) | |
764 | #t)) | |
230e5db7 | 765 | (replace 'configure |
79228a52 | 766 | (lambda _ |
230e5db7 | 767 | (mkdir-p "build") |
1362e529 | 768 | (chdir "build") |
230e5db7 GLV |
769 | (invoke "qmake" "../monero-wallet-gui.pro" "CONFIG+=release"))) |
770 | (add-before 'build 'build-zxcvbn-c | |
771 | (lambda _ | |
772 | (invoke "make" "-C" "../src/zxcvbn-c")))))) | |
61fe56fc | 773 | (home-page "https://web.getmonero.org/") |
79228a52 TF |
774 | (synopsis "Graphical user interface for the Monero currency") |
775 | (description | |
1362e529 GLV |
776 | "Monero is a secure, private, untraceable currency. This package provides |
777 | the Monero GUI client.") | |
79228a52 | 778 | (license license:bsd-3))) |
00d3f022 DM |
779 | |
780 | (define-public python-trezor-agent | |
781 | (package | |
782 | (name "python-trezor-agent") | |
37cff994 | 783 | (version "0.13.1") |
00d3f022 DM |
784 | (source |
785 | (origin | |
39a7b720 TGR |
786 | (method git-fetch) |
787 | (uri (git-reference | |
b0e7b699 | 788 | (url "https://github.com/romanz/trezor-agent") |
39a7b720 TGR |
789 | (commit (string-append "v" version)))) |
790 | (file-name (git-file-name name version)) | |
00d3f022 | 791 | (sha256 |
37cff994 | 792 | (base32 "0q99vbfd3h85s8rnjipnmldixabqmmlk5w9karv6f0rhyi54f4zv")))) |
00d3f022 DM |
793 | (build-system python-build-system) |
794 | (arguments | |
795 | `(#:phases | |
796 | (modify-phases %standard-phases | |
df724c9c VC |
797 | (add-after 'unpack 'remove-requires-backports-shutil-which |
798 | ;; Remove requires on backport of shutil_which, as python 3.4+ has | |
799 | ;; a built-in implementation supported in python-trezor-agent. | |
800 | (lambda _ | |
801 | (substitute* "setup.py" | |
802 | (("'backports.shutil_which>=3.5.1',") "")) | |
803 | #t)) | |
00d3f022 DM |
804 | (delete 'check) |
805 | (add-after 'install 'check | |
806 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
39a7b720 | 807 | ;; Make installed package available for running the tests. |
00d3f022 DM |
808 | (add-installed-pythonpath inputs outputs) |
809 | (invoke "py.test")))))) | |
810 | (propagated-inputs | |
df724c9c VC |
811 | `(("python-configargparse" ,python-configargparse) |
812 | ("python-daemon" ,python-daemon) | |
813 | ("python-docutils" ,python-docutils) | |
814 | ("python-ecdsa" ,python-ecdsa) | |
00d3f022 | 815 | ("python-ed25519" ,python-ed25519) |
df724c9c VC |
816 | ("python-mnemonic" ,python-mnemonic) |
817 | ("python-pymsgbox" ,python-pymsgbox) | |
00d3f022 | 818 | ("python-semver" ,python-semver) |
df724c9c VC |
819 | ("python-unidecode" ,python-unidecode) |
820 | ("python-wheel" ,python-wheel))) | |
00d3f022 | 821 | (native-inputs |
df724c9c VC |
822 | `(("gnupg" ,gnupg) |
823 | ("python-mock" ,python-mock) | |
00d3f022 DM |
824 | ("python-pytest" ,python-pytest))) |
825 | (home-page "https://github.com/romanz/trezor-agent") | |
df724c9c | 826 | (synopsis "Use hardware wallets as SSH and GPG agent") |
00d3f022 DM |
827 | (description |
828 | "@code{libagent} is a library that allows using TREZOR, Keepkey and | |
829 | Ledger Nano as a hardware SSH/GPG agent.") | |
830 | (license license:lgpl3))) | |
831 | ||
6e9749ef DM |
832 | (define-public python-mnemonic |
833 | (package | |
834 | (name "python-mnemonic") | |
011ec062 | 835 | (version "0.19") |
6e9749ef DM |
836 | (source |
837 | (origin | |
838 | (method url-fetch) | |
839 | (uri (pypi-uri "mnemonic" version)) | |
840 | (sha256 | |
011ec062 | 841 | (base32 "0cd9prmdj8wzdmc7lxbf9lz0xrlkvak5ignag406mmfbn81fndsf")))) |
6e9749ef DM |
842 | (build-system python-build-system) |
843 | (propagated-inputs | |
844 | `(("python-pbkdf2" ,python-pbkdf2))) | |
845 | (home-page "https://github.com/trezor/python-mnemonic") | |
846 | (synopsis "Implementation of Bitcoin BIP-0039") | |
847 | (description "@code{mnemonic} is a library that provides an implementation | |
848 | of Bitcoin BIP-0039.") | |
849 | (license license:expat))) | |
850 | ||
851 | (define-public python2-mnemonic | |
852 | (package-with-python2 python-mnemonic)) | |
96f5e2e9 DM |
853 | |
854 | (define-public python-ledgerblue | |
855 | (package | |
856 | (name "python-ledgerblue") | |
857 | (version "0.1.16") | |
858 | (source | |
859 | (origin | |
860 | (method url-fetch) | |
861 | (uri (pypi-uri "ledgerblue" version)) | |
862 | (sha256 | |
863 | (base32 | |
864 | "010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb")))) | |
865 | (build-system python-build-system) | |
866 | (propagated-inputs | |
867 | `(("python-ecpy" ,python-ecpy) | |
868 | ("python-future" ,python-future) | |
869 | ("python-hidapi" ,python-hidapi) | |
870 | ("python-pillow" ,python-pillow) | |
871 | ("python-protobuf" ,python-protobuf) | |
872 | ("python-pycrypto" ,python-pycrypto))) | |
873 | (home-page "https://github.com/LedgerHQ/blue-loader-python") | |
874 | (synopsis "Python library to communicate with Ledger Blue/Nano S") | |
875 | (description "@code{ledgerblue} is a Python library to communicate with | |
876 | Ledger Blue/Nano S.") | |
877 | (license license:asl2.0))) | |
878 | ||
879 | (define-public python2-ledgerblue | |
880 | (package-with-python2 python-ledgerblue)) | |
881 | ||
1dca32e3 DM |
882 | (define-public python-trezor |
883 | (package | |
884 | (name "python-trezor") | |
9e7fccda | 885 | (version "0.12.1") |
1dca32e3 DM |
886 | (source |
887 | (origin | |
888 | (method url-fetch) | |
889 | (uri (pypi-uri "trezor" version)) | |
890 | (sha256 | |
9e7fccda | 891 | (base32 "1w19m9lws55k9sjhras47hpfpqwq1jm5vy135nj65yhkblygqg19")))) |
1dca32e3 DM |
892 | (build-system python-build-system) |
893 | (propagated-inputs | |
b4c698c8 | 894 | `(("python-click" ,python-click) |
8c16b8a4 | 895 | ("python-construct" ,python-construct) |
b4c698c8 | 896 | ("python-ecdsa" ,python-ecdsa) |
b4c698c8 | 897 | ("python-libusb1" ,python-libusb1) |
1dca32e3 | 898 | ("python-mnemonic" ,python-mnemonic) |
b4c698c8 | 899 | ("python-requests" ,python-requests) |
8c16b8a4 | 900 | ("python-typing-extensions" ,python-typing-extensions))) |
1dca32e3 | 901 | (native-inputs |
61497aa4 TGR |
902 | ;; For tests. |
903 | `(("protobuf" ,protobuf) | |
904 | ("python-black" ,python-black) | |
905 | ("python-protobuf" ,python-protobuf) | |
906 | ("python-isort" ,python-isort) | |
907 | ("python-pyqt" ,python-pyqt) | |
908 | ("python-pytest" ,python-pytest))) | |
1dca32e3 DM |
909 | (home-page "https://github.com/trezor/python-trezor") |
910 | (synopsis "Python library for communicating with TREZOR Hardware Wallet") | |
911 | (description "@code{trezor} is a Python library for communicating with | |
912 | TREZOR Hardware Wallet.") | |
913 | (license license:lgpl3))) | |
914 | ||
d6ddeffc DM |
915 | (define-public python-keepkey |
916 | (package | |
917 | (name "python-keepkey") | |
52311b51 | 918 | (version "6.0.3") |
d6ddeffc DM |
919 | (source |
920 | (origin | |
921 | (method url-fetch) | |
922 | (uri (pypi-uri "keepkey" version)) | |
923 | (sha256 | |
924 | (base32 | |
52311b51 | 925 | "0z3d0m6364v9dv0njs4cd5m5ai6j6v35xaaxfxl90m9vmyxy81vd")))) |
d6ddeffc DM |
926 | (build-system python-build-system) |
927 | (arguments | |
928 | `(#:phases | |
929 | (modify-phases %standard-phases | |
930 | (delete 'check) | |
931 | (add-after 'install 'check | |
932 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
933 | (add-installed-pythonpath inputs outputs) | |
934 | (apply invoke "python" (find-files "tests/unit" "\\.py$"))))))) | |
935 | (propagated-inputs | |
936 | `(("python-ecdsa" ,python-ecdsa) | |
937 | ("python-hidapi" ,python-hidapi) | |
02d9e5d2 | 938 | ("python-libusb1" ,python-libusb1) |
d6ddeffc DM |
939 | ("python-mnemonic" ,python-mnemonic) |
940 | ("python-protobuf" ,python-protobuf))) | |
941 | (home-page "https://github.com/keepkey/python-keepkey") | |
942 | (synopsis "Python library for communicating with KeepKey Hardware Wallet") | |
943 | (description "@code{keepkey} is a Python library for communicating with | |
944 | the KeepKey Hardware Wallet.") | |
945 | (license license:lgpl3))) | |
946 | ||
947 | (define-public python2-keepkey | |
948 | (package-with-python2 python-keepkey)) | |
949 | ||
d596fea5 DM |
950 | (define-public ledger-agent |
951 | (package | |
952 | (name "ledger-agent") | |
953 | (version "0.9.0") | |
954 | (source | |
955 | (origin | |
956 | (method url-fetch) | |
957 | (uri (pypi-uri "ledger_agent" version)) | |
958 | (sha256 | |
959 | (base32 | |
960 | "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92")))) | |
961 | (build-system python-build-system) | |
962 | (inputs | |
963 | `(("python-ledgerblue" ,python-ledgerblue) | |
964 | ("python-trezor-agent" ,python-trezor-agent))) | |
702a1012 | 965 | (home-page "https://github.com/romanz/trezor-agent") |
d596fea5 DM |
966 | (synopsis "Ledger as hardware SSH/GPG agent") |
967 | (description "This package allows using Ledger as hardware SSH/GPG agent. | |
968 | ||
5859fd6c MB |
969 | Usage for SSH: trezor-agent foo@@example.com --connect |
970 | Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\" | |
d596fea5 DM |
971 | Then set the environment variable GNUPGHOME to |
972 | \"${HOME}/.gnupg/trezor\".") | |
973 | (license license:lgpl3))) | |
47c8ea99 DM |
974 | |
975 | (define-public trezor-agent | |
976 | (package | |
977 | (name "trezor-agent") | |
7fafdadd | 978 | (version "0.10.0") |
47c8ea99 DM |
979 | (source |
980 | (origin | |
981 | (method url-fetch) | |
982 | (uri (pypi-uri "trezor_agent" version)) | |
983 | (sha256 | |
984 | (base32 | |
7fafdadd VC |
985 | "144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8")))) |
986 | (arguments | |
987 | ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'". | |
988 | `(#:phases | |
989 | (modify-phases %standard-phases | |
990 | (add-after 'wrap 'fixup-agent-py | |
991 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
992 | (let* ((out (assoc-ref outputs "out"))) | |
993 | ;; overwrite the wrapper with the real thing. | |
994 | (install-file "./trezor_agent.py" | |
995 | (string-append out "/bin")) | |
996 | #t)))))) | |
47c8ea99 DM |
997 | (build-system python-build-system) |
998 | (inputs | |
999 | `(("python-trezor" ,python-trezor) | |
1000 | ("python-trezor-agent" ,python-trezor-agent))) | |
7fafdadd VC |
1001 | (native-inputs |
1002 | `(("python-hidapi" ,python-hidapi))) | |
1003 | (home-page "https://github.com/romanz/trezor-agent") | |
47c8ea99 DM |
1004 | (synopsis "Using Trezor as hardware SSH/GPG agent") |
1005 | (description "This package allows using Trezor as a hardware SSH/GPG | |
1006 | agent.") | |
1007 | (license license:lgpl3))) | |
50c4d676 DM |
1008 | |
1009 | (define-public keepkey-agent | |
1010 | (package | |
1011 | (name "keepkey-agent") | |
1012 | (version "0.9.0") | |
1013 | (source | |
1014 | (origin | |
1015 | (method url-fetch) | |
1016 | (uri (pypi-uri "keepkey_agent" version)) | |
1017 | (sha256 | |
1018 | (base32 | |
1019 | "03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27")))) | |
1020 | (build-system python-build-system) | |
1021 | (inputs | |
1022 | `(("python-keepkey" ,python-keepkey) | |
1023 | ("python-trezor-agent" ,python-trezor-agent))) | |
702a1012 | 1024 | (home-page "https://github.com/romanz/trezor-agent") |
50c4d676 DM |
1025 | (synopsis "KeepKey as hardware SSH/GPG agent") |
1026 | (description "This package allows using KeepKey as a hardware SSH/GPG | |
1027 | agent.") | |
1028 | (license license:lgpl3))) | |
3da86c52 AP |
1029 | |
1030 | (define-public python-stdnum | |
1031 | (package | |
1032 | (name "python-stdnum") | |
e918eaf5 | 1033 | (version "1.14") |
3da86c52 AP |
1034 | (source |
1035 | (origin | |
1036 | (method url-fetch) | |
1037 | (uri (pypi-uri "python-stdnum" version)) | |
1038 | (sha256 | |
e918eaf5 | 1039 | (base32 "070vd9zgvq0jchs4xc4j1h4r1l1lg4wwb8xs3p25k8c2xjw94fpx")))) |
3da86c52 | 1040 | (build-system python-build-system) |
200acbc3 MB |
1041 | (arguments |
1042 | '(#:phases (modify-phases %standard-phases | |
1043 | (replace 'check | |
1044 | (lambda _ | |
1045 | (invoke "nosetests")))))) | |
1046 | (native-inputs | |
1047 | `(("python-nose" ,python-nose))) | |
e918eaf5 TGR |
1048 | (home-page "https://arthurdejong.org/python-stdnum/") |
1049 | (synopsis "Python module to handle standardized number and code formats") | |
3da86c52 AP |
1050 | (description |
1051 | "This is a Python library that aims to provide functions to handle, | |
1052 | parse and validate standard numbers. | |
1053 | The module supports more than 100 different number formats | |
1054 | amongst which a great number of VAT and other tax numbers, | |
1055 | personal identity and company identification codes, | |
1056 | international standard numbers (ISBN, IBAN, EAN, etc.) | |
1057 | and various other formats. | |
1058 | The module also inclused implementations of the Verhoeff, | |
1059 | Luhn and family of ISO/IEC 7064 check digit algorithms. ") | |
1060 | (license license:lgpl2.1+))) | |
1061 | ||
1062 | (define-public python2-stdnum | |
1063 | (package-with-python2 python-stdnum)) | |
730553d7 | 1064 | |
c7299015 NG |
1065 | (define-public python-duniterpy |
1066 | (package | |
1067 | (name "python-duniterpy") | |
fbfaba8a | 1068 | (version "0.57.0") |
c7299015 NG |
1069 | (source |
1070 | (origin | |
c1d79b49 NG |
1071 | (method url-fetch) |
1072 | (uri (pypi-uri "duniterpy" version)) | |
c7299015 | 1073 | (sha256 |
fbfaba8a | 1074 | (base32 "0rw2c7r9gcqhymp82gbk1ky45zqbypsi2q5x4vdwjc6g00kh7h6l")))) |
c7299015 | 1075 | (build-system python-build-system) |
1427d888 | 1076 | (arguments |
c1d79b49 NG |
1077 | ;; FIXME: Tests fail with: "ModuleNotFoundError: No module named |
1078 | ;; 'tests'". Not sure how to handle this. | |
42a57df8 NG |
1079 | `(#:tests? #f |
1080 | #:phases | |
1081 | (modify-phases %standard-phases | |
c1d79b49 NG |
1082 | ;; "setup.py" tries to open missing "requirements.txt". |
1083 | (add-after 'unpack 'ignore-missing-file | |
42a57df8 | 1084 | (lambda _ |
c1d79b49 NG |
1085 | (substitute* "setup.py" |
1086 | (("open\\('requirements\\.txt'\\)") "[]")) | |
42a57df8 | 1087 | #t))))) |
c7299015 | 1088 | (propagated-inputs |
352033f3 | 1089 | `(("aiohttp" ,python-aiohttp) |
c1d79b49 | 1090 | ("attrs" ,python-attrs) |
352033f3 NG |
1091 | ("base58" ,python-base58) |
1092 | ("jsonschema" ,python-jsonschema) | |
1093 | ("libnacl" ,python-libnacl) | |
1094 | ("pyaes" ,python-pyaes) | |
1095 | ("pylibscrypt" ,python-pylibscrypt) | |
1096 | ("pypeg2" ,python-pypeg2))) | |
9f1a2be2 | 1097 | (home-page "https://git.duniter.org/clients/python/duniterpy") |
c7299015 NG |
1098 | (synopsis "Python implementation of Duniter API") |
1099 | (description "@code{duniterpy} is an implementation of | |
207a79b2 | 1100 | @uref{https://github.com/duniter/duniter/, duniter} API. Its |
c7299015 NG |
1101 | main features are: |
1102 | @itemize | |
207a79b2 NG |
1103 | @item Support Duniter's Basic Merkle API and protocol |
1104 | @item Asynchronous/synchronous without threads | |
1105 | @item Support HTTP, HTTPS and Web Socket transport for Basic Merkle API | |
1106 | @item Support Elasticsearch Duniter4j API | |
c7299015 | 1107 | @item Duniter signing key |
207a79b2 | 1108 | @item Sign/verify and encrypt/decrypt messages with the Duniter credentials |
c7299015 NG |
1109 | @end itemize") |
1110 | (license license:gpl3+))) | |
1111 | ||
730553d7 NG |
1112 | (define-public silkaj |
1113 | (package | |
1114 | (name "silkaj") | |
293bc15d | 1115 | (version "0.7.6") |
730553d7 NG |
1116 | (source |
1117 | (origin | |
293bc15d NG |
1118 | (method url-fetch) |
1119 | (uri (pypi-uri "silkaj" version)) | |
730553d7 | 1120 | (sha256 |
293bc15d | 1121 | (base32 "0hrn0jwg415z7wjkp0myvw85wszlfi18f56j03075xxakr4dmi2j")))) |
730553d7 NG |
1122 | (build-system python-build-system) |
1123 | (arguments | |
e627052f | 1124 | `(#:tests? #f)) ;no test |
730553d7 | 1125 | (inputs |
c14b3a8d NG |
1126 | `(("click" ,python-click) |
1127 | ("duniterpy" ,python-duniterpy) | |
c14b3a8d | 1128 | ("pynacl" ,python-pynacl) |
f41378b7 NG |
1129 | ("tabulate" ,python-tabulate) |
1130 | ("texttable" ,python-texttable))) | |
293bc15d | 1131 | (home-page "https://git.duniter.org/clients/python/silkaj") |
730553d7 NG |
1132 | (synopsis "Command line client for Duniter network") |
1133 | (description "@code{Silkaj} is a command line client for the | |
1134 | @uref{https://github.com/duniter/duniter/, Duniter} network. | |
1135 | ||
1136 | Its features are: | |
1137 | @itemize | |
1138 | @item information about currency, | |
1139 | @item issuers difficulty to generate next block, | |
1140 | @item network view of nodes, | |
1141 | @item list of last issuers, | |
1142 | @item send transactions, | |
1143 | @item get account amount. | |
1144 | @end itemize") | |
1145 | (license license:agpl3+))) | |
90bb244f TLC |
1146 | |
1147 | (define-public grisbi | |
1148 | (package | |
1149 | (name "grisbi") | |
1150 | (version "1.2.2") | |
1151 | (source | |
1152 | (origin | |
1153 | (method url-fetch) | |
1154 | (uri (string-append | |
1155 | "mirror://sourceforge/grisbi/grisbi%20stable/" | |
1156 | (version-major+minor version) ".x/" version | |
1157 | "/grisbi-" version ".tar.bz2")) | |
1158 | (sha256 | |
1159 | (base32 | |
1160 | "1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw")))) | |
1161 | (build-system glib-or-gtk-build-system) | |
1162 | (arguments | |
1163 | `(#:configure-flags (list "--without-ofx"))) | |
1164 | (propagated-inputs | |
1165 | `(("dconf" ,dconf))) | |
1166 | (native-inputs | |
1167 | `(("glib" ,glib "bin") ; glib-compile-schemas | |
1168 | ("pkg-config" ,pkg-config) | |
1169 | ("intltool" ,intltool))) | |
1170 | (inputs | |
1171 | `(("gtk+" ,gtk+) | |
1172 | ("libgsf" ,libgsf))) | |
1173 | (synopsis "Personal accounting application") | |
1174 | (description "Grisbi is a personal accounting application written by | |
1175 | French developers that is designed to follow French accounting rules. | |
1176 | Grisbi can manage multiple accounts, currencies and users. It manages | |
1177 | third party, expenditure and receipt categories, budgetary lines, | |
1178 | financial years, budget estimates, bankcard management and other | |
1179 | information.") | |
9c99cb22 | 1180 | (home-page "https://grisbi.org") |
90bb244f | 1181 | (license license:gpl2+))) |
01b37d0f | 1182 | |
0639a240 MB |
1183 | (define-public trezord-udev-rules |
1184 | (let ((commit "bff7fdfe436c727982cc553bdfb29a9021b423b0") | |
1185 | (revision "0")) | |
1186 | (package | |
1187 | (name "trezord-udev-rules") | |
1188 | (version (git-version "0.0.0" revision commit)) | |
1189 | (source | |
1190 | (origin | |
1191 | (method git-fetch) | |
1192 | (uri (git-reference | |
b0e7b699 | 1193 | (url "https://github.com/trezor/trezor-common") |
0639a240 MB |
1194 | (commit commit))) |
1195 | (sha256 | |
1196 | (base32 | |
1197 | "14mrirrn68if7ja6qdk9qlxs1hv0f21vrxy5ncnms0gx9iwakp2l")) | |
1198 | (file-name (git-file-name name version)))) | |
1199 | (build-system copy-build-system) | |
1200 | (arguments | |
1201 | '(#:install-plan | |
1202 | '(("./udev/51-trezor.rules" "lib/udev/rules.d/")))) | |
1203 | (home-page "https://github.com/trezor/trezor-common") | |
1204 | (synopsis "Udev rules for trezord") | |
1205 | (description | |
1206 | "This contains the udev rules for trezord. This will let a user run | |
1207 | trezord as a regular user instead of needing to it run as root.") | |
1208 | (license license:lgpl3+)))) | |
1209 | ||
01b37d0f | 1210 | (define-public trezord |
1211 | (package | |
1212 | (name "trezord") | |
abb37b3c | 1213 | (version "2.0.29") |
01b37d0f | 1214 | (source |
1215 | (origin | |
1216 | (method git-fetch) | |
1217 | (uri (git-reference | |
b0e7b699 | 1218 | (url "https://github.com/trezor/trezord-go") |
01b37d0f | 1219 | (commit (string-append "v" version)))) |
1220 | (sha256 | |
1221 | (base32 | |
abb37b3c | 1222 | "1ks1fa0027s3xp0z6qp0dxmayvrb4dwwscfhbx7da0khp153f2cp")) |
01b37d0f | 1223 | (file-name (git-file-name name version)))) |
1224 | (build-system go-build-system) | |
1225 | (arguments | |
1226 | '(#:import-path "github.com/trezor/trezord-go")) | |
1227 | (home-page "https://trezor.io") | |
1228 | (synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)") | |
1229 | (description "This allows a Trezor hardware wallet to communicate to the | |
1230 | Trezor wallet.") | |
1231 | (license license:lgpl3+))) | |
af012922 | 1232 | |
1233 | (define-public bitcoin-abc | |
1234 | (package | |
af012922 | 1235 | (name "bitcoin-abc") |
4338d974 | 1236 | (version "0.21.12") |
af012922 | 1237 | (source (origin |
1238 | (method url-fetch) | |
1239 | (uri (string-append "https://download.bitcoinabc.org/" | |
28d46d9d | 1240 | version "/src/bitcoin-abc-" |
af012922 | 1241 | version ".tar.gz")) |
1242 | (sha256 | |
1243 | (base32 | |
4338d974 | 1244 | "1amzwy3gpl8ai90dsy7g0z51qq8vxfzbf642wn4bfynb8jmw3kx5")))) |
f7237a2e | 1245 | (build-system cmake-build-system) |
054ff198 | 1246 | (native-inputs |
f7237a2e | 1247 | `(("pkg-config" ,pkg-config) |
054ff198 GLV |
1248 | ("python" ,python) ; for the tests |
1249 | ("util-linux" ,util-linux) ; provides the hexdump command for tests | |
1250 | ("qttools" ,qttools))) | |
28d46d9d GLV |
1251 | (inputs |
1252 | `(("bdb" ,bdb-5.3) | |
1253 | ("boost" ,boost) | |
59668de4 | 1254 | ("jemalloc" ,jemalloc) |
28d46d9d GLV |
1255 | ("libevent" ,libevent) |
1256 | ("miniupnpc" ,miniupnpc) | |
1257 | ("openssl" ,openssl) | |
1258 | ("protobuf" ,protobuf) | |
054ff198 GLV |
1259 | ("qrencode" ,qrencode) |
1260 | ("qtbase" ,qtbase) | |
f7237a2e | 1261 | ("zeromq" ,zeromq) |
054ff198 | 1262 | ("zlib" ,zlib))) |
f7237a2e GLV |
1263 | (arguments |
1264 | `(#:phases | |
1265 | (modify-phases %standard-phases | |
1266 | (add-before 'configure 'make-qt-deterministic | |
1267 | (lambda _ | |
1268 | ;; Make Qt deterministic. | |
1269 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
1270 | #t)) | |
1271 | (add-before 'check 'set-home | |
1272 | (lambda _ | |
1273 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME | |
1274 | #t)) | |
1275 | (add-after 'check 'check-functional | |
1276 | (lambda _ | |
1277 | (invoke | |
1278 | "python3" "./test/functional/test_runner.py" | |
1279 | (string-append "--jobs=" (number->string (parallel-job-count))) | |
1280 | ;; TODO: find why the abc-miner-fund test fails. | |
1281 | "--exclude=abc-miner-fund") | |
1282 | #t))))) | |
af012922 | 1283 | (home-page "https://www.bitcoinabc.org/") |
1284 | (synopsis "Bitcoin ABC peer-to-peer full node for the Bitcoin Cash protocol") | |
1285 | (description | |
1286 | "Bitcoin Cash brings sound money to the world, fulfilling the original | |
1287 | promise of Bitcoin as Peer-to-Peer Electronic Cash. Merchants and users are | |
1288 | empowered with low fees and reliable confirmations is a digital currency that | |
1289 | enables instant payments to anyone anywhere in the world. It uses | |
1290 | peer-to-peer technology to operate without central authority: managing | |
1291 | transactions and issuing money are carried out collectively by the network. | |
1292 | As a fork it implemented changes lowering the time between blocks and now | |
1293 | offers confimations after less than 5 seconds and have significantly lower | |
1294 | fees that BTC. Bitcoin ABC is the reference implementation of the Bitcoin | |
1295 | Cash protocol. This package provides the Bitcoin Cash command line client and | |
f7237a2e GLV |
1296 | a client based on Qt. This is a fork of Bitcoin Core.") |
1297 | (license license:expat))) | |
63ca1a89 | 1298 | |
952fe2da KK |
1299 | (define-public libofx |
1300 | (package | |
1301 | (name "libofx") | |
1302 | (version "0.9.15") | |
1303 | (source (origin | |
1304 | (method git-fetch) | |
1305 | (uri (git-reference | |
1306 | (url "https://github.com/libofx/libofx") | |
1307 | (commit version))) | |
1308 | (file-name (git-file-name name version)) | |
1309 | (sha256 | |
1310 | (base32 | |
1311 | "1jx56ma351p8af8dvavygjwf6ipa7qbgq7bpdsymwj27apdnixfy")))) | |
1312 | (build-system gnu-build-system) | |
1313 | (arguments | |
c17fb659 MB |
1314 | '(#:parallel-build? #f ;fails with -j64 |
1315 | #:configure-flags | |
952fe2da KK |
1316 | (list (string-append "--with-opensp-includes=" |
1317 | (assoc-ref %build-inputs "opensp") | |
1318 | "/include/OpenSP")))) | |
1319 | (native-inputs | |
1320 | `(("autoconf" ,autoconf) | |
1321 | ("automake" ,automake) | |
1322 | ("gengetopt" ,gengetopt) | |
1323 | ("help2man" ,help2man) | |
1324 | ("libtool" ,libtool) | |
1325 | ("pkg-config" ,pkg-config))) | |
1326 | (inputs | |
1327 | `(("curl" ,curl) | |
1328 | ("libxml++-2" ,libxml++-2) | |
1329 | ("opensp" ,opensp))) | |
1330 | (home-page "http://libofx.sourceforge.net/") | |
1331 | (synopsis "Library supporting the Open Financial Exchange format") | |
1332 | (description | |
8b08cf4f | 1333 | "The LibOFX library is an API designed to allow applications to very easily |
952fe2da KK |
1334 | support OFX command responses, usually provided by financial institutions. The |
1335 | following three utilities are included with the library: | |
1336 | @enumerate | |
1337 | @item @code{ofxdump} | |
1338 | @item @code{ofx2qif} | |
1339 | @item @code{ofxconnect} | |
1340 | @end enumerate") | |
1341 | (license license:gpl2+))) | |
1342 | ||
63ca1a89 KK |
1343 | (define-public opensp |
1344 | (package | |
1345 | (name "opensp") | |
1346 | (version "1.5.2") | |
1347 | (source (origin | |
1348 | (method url-fetch) | |
1349 | (uri (string-append "mirror://sourceforge/openjade/opensp/" | |
1350 | version "/OpenSP-" version ".tar.gz")) | |
1351 | (sha256 | |
1352 | (base32 | |
1353 | "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p")))) | |
1354 | (build-system gnu-build-system) | |
1355 | (native-inputs | |
1356 | `(("gettext" ,gettext-minimal))) | |
1357 | (inputs | |
1358 | `(("docbook-xml" ,docbook-xml-4.1.2) | |
1359 | ("docbook-xsl" ,docbook-xsl) | |
1360 | ("xmlto" ,xmlto))) | |
1361 | (arguments | |
1362 | `(;; TODO: Fix and enable tests. | |
1363 | #:tests? #f | |
1364 | #:phases | |
1365 | (modify-phases %standard-phases | |
1366 | (add-after 'unpack 'patch-docbook-paths | |
1367 | (lambda* (#:key inputs #:allow-other-keys) | |
1368 | (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml") | |
1369 | "/xml/dtd/docbook")) | |
1370 | (xsldoc (string-append (assoc-ref inputs "docbook-xsl") | |
1371 | "/xml/xsl/docbook-xsl-" | |
1372 | ,(package-version docbook-xsl)))) | |
1373 | (substitute* (find-files "docsrc" "\\.xml$") | |
1374 | (("/usr/share/sgml/docbook/xml-dtd-4.1.2") xmldoc) | |
1375 | (("http://.*/docbookx\\.dtd") | |
1376 | (string-append xmldoc "/docbookx.dtd"))) | |
1377 | ;; Directly pass the path to the stylesheet to xmlto. | |
1378 | (substitute* "docsrc/Makefile.in" | |
1379 | (("\\$\\(XMLTO\\)") | |
1380 | (string-append "$(XMLTO) -x " xsldoc | |
1381 | "/manpages/docbook.xsl"))) | |
1382 | #t)))))) | |
1383 | (home-page "http://openjade.sourceforge.net/") | |
1384 | (synopsis "Suite of SGML/XML processing tools") | |
1385 | (description "OpenSP is an object-oriented toolkit for SGML parsing and | |
1386 | entity management.") | |
1387 | (license | |
1388 | ;; expat license with added clause regarding advertising | |
1389 | (license:non-copyleft | |
1390 | "file://COPYING" | |
1391 | "See COPYING in the distribution.")))) | |
0edbb65d GLV |
1392 | |
1393 | (define-public bitcoin-unlimited | |
1394 | (package | |
1395 | (name "bitcoin-unlimited") | |
89c5b924 | 1396 | (version "1.8.0.0") |
0edbb65d GLV |
1397 | (source |
1398 | (origin | |
1399 | (method git-fetch) | |
1400 | (uri (git-reference | |
b0e7b699 | 1401 | (url "https://github.com/BitcoinUnlimited/BitcoinUnlimited") |
89c5b924 | 1402 | (commit (string-append "BCHunlimited" version)))) |
0edbb65d GLV |
1403 | (file-name (git-file-name name version)) |
1404 | (sha256 | |
89c5b924 | 1405 | (base32 "1ivkig6q7i4n389dg1zv06cmfki20bjq0slmshx0p5a1aavkqj7k")))) |
0edbb65d GLV |
1406 | (build-system gnu-build-system) |
1407 | (native-inputs | |
1408 | `(("autoconf" ,autoconf) | |
1409 | ("automake" ,automake) | |
1410 | ("libtool" ,libtool) | |
1411 | ("pkg-config" ,pkg-config) | |
1412 | ("python" ,python) ; for the tests | |
1413 | ("util-linux" ,util-linux) ; provides the hexdump command for tests | |
1414 | ("qttools" ,qttools))) | |
1415 | (inputs | |
1416 | `(("bdb" ,bdb-4.8) | |
1417 | ("boost" ,boost) | |
1418 | ("libevent" ,libevent) | |
1419 | ("miniupnpc" ,miniupnpc) | |
1420 | ("openssl" ,openssl) | |
1421 | ("protobuf" ,protobuf) | |
1422 | ("qrencode" ,qrencode) | |
1423 | ("qtbase" ,qtbase) | |
1424 | ("zeromq" ,zeromq) | |
1425 | ("zlib" ,zlib))) | |
1426 | (arguments | |
1427 | `(#:configure-flags | |
1428 | (list | |
1429 | ;; Boost is not found unless specified manually. | |
1430 | (string-append "--with-boost=" | |
1431 | (assoc-ref %build-inputs "boost")) | |
1432 | ;; XXX: The configure script looks up Qt paths by | |
1433 | ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick | |
1434 | ;; up executables residing in 'qttools', so we specify them here. | |
1435 | (string-append "ac_cv_path_LRELEASE=" | |
1436 | (assoc-ref %build-inputs "qttools") | |
1437 | "/bin/lrelease") | |
1438 | (string-append "ac_cv_path_LUPDATE=" | |
1439 | (assoc-ref %build-inputs "qttools") | |
1440 | "/bin/lupdate")) | |
1441 | #:phases | |
1442 | (modify-phases %standard-phases | |
89c5b924 GLV |
1443 | (add-after 'unpack 'fix-build |
1444 | (lambda _ | |
1445 | ;; The 'stack' header was not included in unlimited.cpp, which | |
1446 | ;; caused the build to fail. | |
1447 | (substitute* "src/unlimited.cpp" | |
1448 | (("#include <queue>" all) | |
1449 | (string-append all "\n#include <stack>"))) | |
1450 | #t)) | |
0edbb65d GLV |
1451 | (add-after 'unpack 'fix-tests |
1452 | (lambda _ | |
89c5b924 GLV |
1453 | ;; TODO: Find why txvalidationcache_tests fails and |
1454 | ;; utilprocess_tests never ends. Disable for now. | |
1455 | (substitute* "src/Makefile.test.include" | |
1456 | (("test/txvalidationcache_tests.cpp") | |
1457 | "") | |
1458 | (("test/utilprocess_tests.cpp") | |
1459 | "")) | |
0edbb65d GLV |
1460 | #t)) |
1461 | (add-before 'configure 'make-qt-deterministic | |
1462 | (lambda _ | |
1463 | ;; Make Qt deterministic. | |
1464 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
1465 | #t)) | |
1466 | (add-before 'check 'set-home | |
1467 | (lambda _ | |
1468 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME | |
1469 | #t))))) | |
1470 | (home-page "https://www.bitcoinunlimited.info/") | |
1471 | (synopsis "Client for the Bitcoin Cash protocol") | |
1472 | (description | |
1473 | "Bitcoin Unlimited is a client for the Bitcoin Cash peer-to-peer | |
1474 | electronic cash system. This package provides a command line client and | |
1475 | a Qt GUI.") | |
1476 | (license license:expat))) | |
f1f72484 | 1477 | |
3e6aa0ce T |
1478 | (define-public fulcrum |
1479 | (package | |
1480 | (name "fulcrum") | |
737b87ce | 1481 | (version "1.1.1") |
3e6aa0ce T |
1482 | (source |
1483 | (origin | |
1484 | (method url-fetch) | |
1485 | (uri (string-append "https://gitlab.com/FloweeTheHub/fulcrum/-/archive/v" | |
1486 | version "/fulcrum-v" version ".tar.gz")) | |
1487 | (sha256 | |
737b87ce | 1488 | (base32 "04w5gw02d39caa8a0l6wkn87kc43zzad2prqsyrcq97vlbkdx6x6")))) |
3e6aa0ce T |
1489 | (build-system gnu-build-system) |
1490 | (arguments | |
1491 | `(#:phases | |
1492 | (modify-phases %standard-phases | |
1493 | ;; Call qmake instead of configure to create a Makefile. | |
1494 | (replace 'configure | |
1495 | (lambda _ | |
1496 | (invoke | |
1497 | "qmake" | |
1498 | (string-append "PREFIX=" %output) | |
1499 | "features=")))))) | |
1500 | (native-inputs | |
1501 | `(("qttools" ,qttools))) | |
1502 | (inputs | |
1503 | `(("python" ,python) | |
1504 | ("qtbase" ,qtbase) | |
1505 | ("rocksdb" ,rocksdb) | |
1506 | ("zlib" ,zlib))) | |
1507 | (home-page "https://gitlab.com/FloweeTheHub/fulcrum/") | |
1508 | (synopsis "Fast and nimble SPV server for Bitcoin Cash") | |
1509 | (description | |
1510 | "Flowee Fulcrum is a server that is the back-end for @acronym{SPV, | |
1511 | Simplified Payment Verification} wallets, it provides the full API for those | |
1512 | walets in a fast and small server. The full data is stored in a full node, | |
1513 | like Flowee the Hub, which Fulcrum connects to over RPC.") | |
1514 | (license license:gpl3+))) | |
1515 | ||
87b343f7 T |
1516 | (define-public flowee |
1517 | (package | |
1518 | (name "flowee") | |
1bea1b35 | 1519 | (version "2020.04.1") |
87b343f7 T |
1520 | (source |
1521 | (origin | |
1522 | (method url-fetch) | |
1523 | (uri (string-append "https://gitlab.com/FloweeTheHub/thehub/-/archive/" | |
1524 | version "/thehub-" version ".tar.gz")) | |
1525 | (sha256 | |
1bea1b35 | 1526 | (base32 "1vwvaxm3b71pfx8l4rrv06wqks6xdf2333w856b36s1bzvj53rhc")))) |
87b343f7 T |
1527 | (build-system cmake-build-system) |
1528 | (arguments | |
1529 | `(#:configure-flags '("-Dbuild_tests=ON" "-Denable_gui=OFF") | |
1530 | #:phases | |
1531 | (modify-phases %standard-phases | |
1532 | (add-before 'configure 'make-qt-deterministic | |
1533 | (lambda _ | |
1534 | ;; Make Qt deterministic. | |
1535 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
1536 | #t)) | |
1537 | (add-before 'configure 'disable-black-box | |
1538 | ;; the black-box testing runs full hubs and lets them interact. | |
1539 | ;; this is more fragile and a slow machine, or low memory machine, may | |
1540 | ;; make the tests timeout and fail. We just disable them here. | |
1541 | (lambda _ | |
1542 | (substitute* "testing/CMakeLists.txt" | |
1543 | (("test_api") "")) | |
cc6653e7 T |
1544 | (substitute* "testing/CMakeLists.txt" |
1545 | (("add_subdirectory\\(api\\)") "")) | |
87b343f7 T |
1546 | #t)) |
1547 | (add-after 'configure 'set-build-info | |
1548 | ;; Their genbuild.sh to generate a build.h fails in guix (no .git dir) . | |
1549 | ;; Its purpose is to write the tag name in the build.h file. We do that | |
1550 | ;; here instead. | |
1551 | (lambda _ | |
1552 | (with-output-to-file "include/build.h" | |
1553 | (lambda _ | |
1554 | (display | |
1555 | (string-append "#define BUILD_DESC " "\"", version "\"")))))) | |
1556 | (add-before 'check 'set-home | |
1557 | (lambda _ | |
1558 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME | |
1559 | #t)) | |
1560 | (replace 'check | |
1561 | (lambda _ | |
1562 | (invoke "make" "check" "-C" "testing")))))) | |
1563 | (inputs | |
1564 | `(("boost" ,boost) | |
1565 | ("gmp" ,gmp) | |
1566 | ("libevent" ,libevent) | |
1567 | ("miniupnpc" ,miniupnpc) | |
1568 | ("openssl" ,openssl) | |
1569 | ("qtbase" ,qtbase))) | |
1570 | (native-inputs | |
1571 | `(("pkg-config" ,pkg-config) | |
1572 | ("qttools" ,qttools) | |
1573 | ("util-linux" ,util-linux))) ; provides the hexdump command for tests | |
1574 | (home-page "https://flowee.org") | |
1575 | (synopsis "Flowee infrastructure tools and services") | |
1576 | (description | |
1577 | "Flowee packages all tier-1 applications and services from the Flowee group. | |
1578 | This includes components like The Hub and Indexer which and various others | |
1579 | that allows you to run services and through them access the Bitcoin Cash networks.") | |
1580 | (license license:gpl3+))) | |
1581 | ||
1582 | ||
f1f72484 CLW |
1583 | (define-public beancount |
1584 | (package | |
1585 | (name "beancount") | |
1586 | (version "2.2.3") | |
1587 | (source | |
1588 | (origin | |
1589 | (method url-fetch) | |
1590 | (uri (pypi-uri "beancount" version)) | |
1591 | (sha256 | |
1592 | (base32 | |
1593 | "0pcfl2rx2ng06i4f9izdpnlnb1k0rdzsckbzzn4cn4ixfzyssm0m")) | |
1594 | (patches (search-patches "beancount-disable-googleapis-fonts.patch")))) | |
1595 | (build-system python-build-system) | |
1596 | (arguments | |
1597 | `(#:tests? #f ; Says test is missing, not sure why | |
1598 | #:phases | |
1599 | (modify-phases %standard-phases | |
1600 | ;; Not importing the googleapis package for now | |
1601 | (add-after 'unpack 'ignore-googleapis | |
1602 | (lambda _ | |
1603 | (substitute* "setup.py" | |
1604 | (("'google-api-python-client',") "")) | |
1605 | #t))))) | |
9afc618e | 1606 | (inputs |
f1f72484 CLW |
1607 | `(("python-beautifulsoup4" ,python-beautifulsoup4) |
1608 | ("python-bottle" ,python-bottle) | |
1609 | ("python-chardet" ,python-chardet) | |
1610 | ("python-dateutil" ,python-dateutil) | |
1611 | ("python-lxml" ,python-lxml) | |
1612 | ("python-magic" ,python-magic) | |
1613 | ("python-ply" ,python-ply) | |
f1f72484 | 1614 | ("python-requests" ,python-requests))) |
74b992fb MB |
1615 | (native-inputs |
1616 | `(("python-pytest" ,python-pytest))) | |
f1f72484 CLW |
1617 | (home-page "http://furius.ca/beancount") |
1618 | (synopsis "Command-line double-entry accounting tool") | |
1619 | (description | |
1620 | "Beancount is a double-entry bookkeeping computer language that lets you | |
1621 | define financial transaction records in a text file, read them in memory, | |
1622 | generate a variety of reports from them, and provides a web interface.") | |
1623 | (license license:gpl2))) | |
805d7021 MB |
1624 | |
1625 | ;; The beancount source ships with elisp in a subdirectory | |
1626 | (define-public emacs-beancount | |
1627 | (package | |
1628 | (inherit beancount) | |
1629 | (name "emacs-beancount") | |
1630 | (build-system emacs-build-system) | |
1631 | (arguments | |
1632 | `(#:tests? #f ;no tests | |
1633 | #:phases | |
1634 | (modify-phases %standard-phases | |
1635 | (add-before 'install 'chdir-emacs | |
1636 | (lambda _ | |
1637 | (chdir "editors/emacs") | |
1638 | #t))))) | |
48cb6408 MB |
1639 | (inputs '()) |
1640 | (native-inputs '()) | |
805d7021 MB |
1641 | (synopsis "Emacs mode for beancount") |
1642 | (description | |
1643 | "Emacs-beancount is an Emacs mode for the Beancount accounting tool."))) |