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 | |
520 | (add-after 'unpack 'patch-home | |
521 | (lambda* (#:key outputs #:allow-other-keys) | |
522 | (substitute* "setup.py" | |
523 | (("~/.local/share") | |
110888f8 TGR |
524 | (string-append (assoc-ref outputs "out") "/local/share"))) |
525 | #t)) | |
e6a0cd9a GLV |
526 | (add-after 'unpack 'use-libsecp256k1-input |
527 | (lambda* (#:key inputs #:allow-other-keys) | |
528 | (substitute* "lib/secp256k1.py" | |
529 | (("library_paths = .* 'libsecp256k1.so.0'.") | |
110888f8 TGR |
530 | (string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'"))) |
531 | #t)) | |
e6a0cd9a GLV |
532 | (add-after 'install 'wrap-qt |
533 | (lambda* (#:key outputs #:allow-other-keys) | |
534 | (wrap-qt-program (assoc-ref outputs "out") "electron-cash") | |
535 | #t))))) | |
a0bb0217 VC |
536 | (home-page "https://electroncash.org/") |
537 | (synopsis "Bitcoin Cash wallet") | |
538 | (description | |
539 | "Electroncash is a lightweight Bitcoin Cash client, based on a client-server | |
540 | protocol. It supports Simple Payment Verification (SPV) and deterministic key | |
541 | generation from a seed. Your secret keys are encrypted and are never sent to | |
542 | other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.") | |
543 | (license license:expat))) | |
544 | ||
8514662b TF |
545 | (define-public monero |
546 | ;; This package bundles easylogging++ and lmdb. | |
fc54da1d GLV |
547 | ;; The bundled easylogging++ is modified, and the changes will not be |
548 | ;; upstreamed. | |
8514662b TF |
549 | ;; The devs deem the lmdb driver too critical a consenus component, to use |
550 | ;; the system's dynamically linked library. | |
551 | (package | |
552 | (name "monero") | |
8809696e | 553 | (version "0.16.0.3") |
8514662b TF |
554 | (source |
555 | (origin | |
0a551443 TF |
556 | (method git-fetch) |
557 | (uri (git-reference | |
b0e7b699 | 558 | (url "https://github.com/monero-project/monero") |
fc54da1d GLV |
559 | (commit (string-append "v" version)) |
560 | (recursive? #t))) | |
136ff9a2 | 561 | (file-name (git-file-name name version)) |
0a551443 | 562 | (patches (search-patches "monero-use-system-miniupnpc.patch")) |
fc54da1d GLV |
563 | (modules '((guix build utils))) |
564 | (snippet | |
565 | '(begin | |
566 | ;; Delete bundled dependencies. | |
567 | (for-each | |
568 | delete-file-recursively | |
569 | '("external/miniupnp" "external/rapidjson" | |
570 | "external/unbound")) | |
571 | #t)) | |
8514662b | 572 | (sha256 |
8809696e | 573 | (base32 "1r9x3712vhb24dxxirfiwj5f9x0h4m7x0ngiiavf5983dfdlgz33")))) |
8514662b TF |
574 | (build-system cmake-build-system) |
575 | (native-inputs | |
576 | `(("doxygen" ,doxygen) | |
8514662b | 577 | ("graphviz" ,graphviz) |
fc54da1d | 578 | ("pkg-config" ,pkg-config) |
b7a07bbd GLV |
579 | ("protobuf" ,protobuf) |
580 | ("python" ,python) | |
fc54da1d | 581 | ("qttools" ,qttools))) |
8514662b | 582 | (inputs |
fc54da1d | 583 | `(("boost" ,boost) |
0a551443 | 584 | ("cppzmq" ,cppzmq) |
8514662b | 585 | ("expat" ,expat) |
fc54da1d | 586 | ("hidapi" ,hidapi) |
fc54da1d | 587 | ("libsodium" ,libsodium) |
b7a07bbd GLV |
588 | ("libunwind" ,libunwind) |
589 | ("libusb" ,libusb) | |
fc54da1d | 590 | ("miniupnpc" ,miniupnpc) |
8514662b | 591 | ("openssl" ,openssl) |
b7a07bbd | 592 | ("protobuf" ,protobuf) |
8514662b | 593 | ("rapidjson" ,rapidjson) |
fc54da1d GLV |
594 | ("readline" ,readline) |
595 | ("unbound" ,unbound) | |
596 | ("xz" ,xz) | |
597 | ("zeromq" ,zeromq))) | |
8514662b TF |
598 | (arguments |
599 | `(#:out-of-source? #t | |
44554d86 GLV |
600 | #:configure-flags |
601 | (list "-DARCH=default" | |
602 | "-DBUILD_TESTS=ON" | |
603 | "-DBUILD_GUI_DEPS=ON" | |
604 | (string-append "-DReadline_ROOT_DIR=" | |
605 | (assoc-ref %build-inputs "readline"))) | |
8514662b TF |
606 | #:phases |
607 | (modify-phases %standard-phases | |
608 | ;; tests/core_tests need a valid HOME | |
609 | (add-before 'configure 'set-home | |
610 | (lambda _ | |
611 | (setenv "HOME" (getcwd)) | |
612 | #t)) | |
fc54da1d | 613 | (add-after 'set-home 'change-log-path |
8514662b TF |
614 | (lambda _ |
615 | (substitute* "contrib/epee/src/mlog.cpp" | |
616 | (("epee::string_tools::get_current_module_folder\\(\\)") | |
fc54da1d GLV |
617 | "\".bitmonero\"") |
618 | (("return \\(") | |
619 | "return ((std::string(getenv(\"HOME\"))) / ")) | |
8514662b | 620 | #t)) |
f8f2a944 GLV |
621 | (add-after 'change-log-path 'fix-file-permissions-for-tests |
622 | (lambda _ | |
623 | (for-each make-file-writable | |
624 | (find-files "tests/data/" "wallet_9svHk1.*")) | |
625 | #t)) | |
fc54da1d | 626 | ;; Only try tests that don't need access to network or system |
8514662b TF |
627 | (replace 'check |
628 | (lambda _ | |
2e5044cf GLV |
629 | ;; Core tests sometimes fail, at least on i686-linux. |
630 | ;; Let's disable them for now and just try hash tests | |
631 | ;; and unit tests. | |
632 | ;; (invoke "make" "ARGS=-R 'hash|core_tests' --verbose" "test"))) | |
633 | (invoke "make" "ARGS=-R 'hash' --verbose" "test"))) | |
8514662b TF |
634 | (add-after 'check 'unit-tests |
635 | (lambda _ | |
636 | (let ((excluded-unit-tests | |
637 | (string-join | |
638 | '("AddressFromURL.Success" | |
639 | "AddressFromURL.Failure" | |
640 | "DNSResolver.IPv4Success" | |
641 | "DNSResolver.DNSSECSuccess" | |
642 | "DNSResolver.DNSSECFailure" | |
fc54da1d | 643 | "DNSResolver.GetTXTRecord" |
fc54da1d | 644 | "is_hdd.linux_os_root") |
8514662b | 645 | ":"))) |
797445be TF |
646 | (invoke "tests/unit_tests/unit_tests" |
647 | (string-append "--gtest_filter=-" | |
b7a07bbd | 648 | excluded-unit-tests))))) |
df90b6e7 GLV |
649 | (add-after 'install 'install-librandomx |
650 | (lambda* (#:key outputs #:allow-other-keys) | |
651 | (let ((lib (string-append (assoc-ref outputs "out") "/lib"))) | |
652 | (install-file "external/randomx/librandomx.a" lib) | |
653 | #t))) | |
b7a07bbd GLV |
654 | (add-after 'install 'delete-dead-links |
655 | (lambda* (#:key outputs #:allow-other-keys) | |
656 | (let ((out (assoc-ref outputs "out"))) | |
657 | (delete-file (string-append out "/lib/libprotobuf.so")) | |
658 | (delete-file (string-append out "/lib/libusb-1.0.so")) | |
659 | #t)))))) | |
df90b6e7 | 660 | (home-page "https://web.getmonero.org/") |
8514662b TF |
661 | (synopsis "Command-line interface to the Monero currency") |
662 | (description | |
fc54da1d GLV |
663 | "Monero is a secure, private, untraceable currency. This package provides |
664 | the Monero command line client and daemon.") | |
8514662b | 665 | (license license:bsd-3))) |
79228a52 | 666 | |
f7e24839 | 667 | (define-public monero-gui |
79228a52 | 668 | (package |
f7e24839 | 669 | (name "monero-gui") |
39cc879a | 670 | (version "0.16.0.3") |
79228a52 TF |
671 | (source |
672 | (origin | |
3902bc5c TF |
673 | (method git-fetch) |
674 | (uri (git-reference | |
b0e7b699 | 675 | (url "https://github.com/monero-project/monero-gui") |
3902bc5c | 676 | (commit (string-append "v" version)))) |
398a96a2 | 677 | (file-name (git-file-name name version)) |
79228a52 | 678 | (sha256 |
39cc879a | 679 | (base32 "0iwjp8x5swy8i8pzrlm5v55awhm54cf48pm1vz98lcq361lhfzk6")))) |
230e5db7 | 680 | (build-system qt-build-system) |
79228a52 | 681 | (native-inputs |
51bd1f5b GLV |
682 | `(("monero-source" ,(package-source monero)) |
683 | ("pkg-config" ,pkg-config) | |
6915d20f | 684 | ("qttools" ,qttools))) |
79228a52 TF |
685 | (inputs |
686 | `(("boost" ,boost) | |
1362e529 | 687 | ("hidapi" ,hidapi) |
51bd1f5b | 688 | ("libgcrypt" ,libgcrypt) |
1362e529 | 689 | ("libsodium" ,libsodium) |
b7a07bbd GLV |
690 | ("libunwind" ,libunwind) |
691 | ("libusb" ,libusb) | |
79228a52 | 692 | ("openssl" ,openssl) |
b7a07bbd | 693 | ("protobuf" ,protobuf) |
6915d20f EF |
694 | ("qtbase" ,qtbase) |
695 | ("qtdeclarative" ,qtdeclarative) | |
696 | ("qtgraphicaleffects" ,qtgraphicaleffects) | |
1362e529 GLV |
697 | ("qtlocation" ,qtlocation) |
698 | ("qtmultimedia" ,qtmultimedia) | |
6915d20f | 699 | ("qtquickcontrols" ,qtquickcontrols) |
1362e529 GLV |
700 | ("qtquickcontrols2",qtquickcontrols2) |
701 | ("qtsvg" ,qtsvg) | |
1362e529 | 702 | ("qtxmlpatterns" ,qtxmlpatterns) |
79228a52 TF |
703 | ("unbound" ,unbound))) |
704 | (propagated-inputs | |
705 | `(("monero" ,monero))) | |
706 | (arguments | |
230e5db7 | 707 | `(#:tests? #f ; No tests |
1362e529 | 708 | #:phases |
79228a52 | 709 | (modify-phases %standard-phases |
51bd1f5b GLV |
710 | (add-after 'unpack 'get-monero-extra-files |
711 | ;; Some headers and GnuPG public keys of the monero package source | |
712 | ;; code are required to build the GUI. | |
713 | (lambda* (#:key inputs #:allow-other-keys) | |
714 | (invoke "tar" "-xv" "--wildcards" "--strip-components=1" | |
715 | "-C" "monero" | |
716 | "-f" (assoc-ref inputs "monero-source") | |
717 | "*.asc" "*.h") | |
718 | #t)) | |
719 | (add-after 'get-monero-extra-files 'fix-makefile-vars | |
79228a52 TF |
720 | (lambda _ |
721 | (substitute* "src/zxcvbn-c/makefile" | |
722 | (("\\?=") "=")) | |
723 | #t)) | |
230e5db7 GLV |
724 | (add-after 'fix-makefile-vars 'fix-paths |
725 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
726 | (let ((boost (assoc-ref inputs "boost")) | |
727 | (monero (assoc-ref inputs "monero")) | |
728 | (openssl (assoc-ref inputs "openssl")) | |
729 | (qttools (assoc-ref inputs "qttools")) | |
730 | (out (assoc-ref outputs "out"))) | |
731 | (substitute* "monero-wallet-gui.pro" | |
732 | (("-L/usr/local/lib") | |
733 | "") | |
734 | (("-L/usr/local/opt/openssl/lib") | |
735 | (string-append "-L" openssl "/lib")) | |
736 | (("-L/usr/local/opt/boost/lib") | |
737 | (string-append "-L" boost "/lib")) | |
738 | (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease") | |
739 | (string-append qttools "/bin/lrelease")) | |
740 | (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate") | |
741 | (string-append qttools "/bin/lupdate"))) | |
742 | (substitute* "deployment.pri" | |
743 | (("/opt/\\$\\$\\{TARGET\\}/bin") | |
744 | (string-append out "/bin"))) | |
745 | (substitute* "src/daemon/DaemonManager.cpp" | |
746 | (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod") | |
747 | (string-append "\"" monero "/bin/monerod"))) | |
748 | #t))) | |
749 | (add-after 'fix-paths 'make-qt-deterministic | |
1362e529 GLV |
750 | (lambda _ |
751 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
752 | #t)) | |
753 | (add-after 'make-qt-deterministic 'fix-version | |
754 | (lambda _ | |
755 | (substitute* "build.sh" | |
756 | (("echo .*> version.js") | |
757 | "")) | |
758 | (with-output-to-file "version.js" | |
759 | (lambda _ | |
760 | (format #t | |
761 | "var GUI_VERSION = \"~a\"~@ | |
762 | var GUI_MONERO_VERSION = \"~a\"~%" | |
763 | ,version | |
764 | ,(package-version monero)))) | |
765 | #t)) | |
230e5db7 | 766 | (replace 'configure |
79228a52 | 767 | (lambda _ |
230e5db7 | 768 | (mkdir-p "build") |
1362e529 | 769 | (chdir "build") |
230e5db7 GLV |
770 | (invoke "qmake" "../monero-wallet-gui.pro" "CONFIG+=release"))) |
771 | (add-before 'build 'build-zxcvbn-c | |
772 | (lambda _ | |
773 | (invoke "make" "-C" "../src/zxcvbn-c")))))) | |
61fe56fc | 774 | (home-page "https://web.getmonero.org/") |
79228a52 TF |
775 | (synopsis "Graphical user interface for the Monero currency") |
776 | (description | |
1362e529 GLV |
777 | "Monero is a secure, private, untraceable currency. This package provides |
778 | the Monero GUI client.") | |
79228a52 | 779 | (license license:bsd-3))) |
00d3f022 DM |
780 | |
781 | (define-public python-trezor-agent | |
782 | (package | |
783 | (name "python-trezor-agent") | |
37cff994 | 784 | (version "0.13.1") |
00d3f022 DM |
785 | (source |
786 | (origin | |
39a7b720 TGR |
787 | (method git-fetch) |
788 | (uri (git-reference | |
b0e7b699 | 789 | (url "https://github.com/romanz/trezor-agent") |
39a7b720 TGR |
790 | (commit (string-append "v" version)))) |
791 | (file-name (git-file-name name version)) | |
00d3f022 | 792 | (sha256 |
37cff994 | 793 | (base32 "0q99vbfd3h85s8rnjipnmldixabqmmlk5w9karv6f0rhyi54f4zv")))) |
00d3f022 DM |
794 | (build-system python-build-system) |
795 | (arguments | |
796 | `(#:phases | |
797 | (modify-phases %standard-phases | |
df724c9c VC |
798 | (add-after 'unpack 'remove-requires-backports-shutil-which |
799 | ;; Remove requires on backport of shutil_which, as python 3.4+ has | |
800 | ;; a built-in implementation supported in python-trezor-agent. | |
801 | (lambda _ | |
802 | (substitute* "setup.py" | |
803 | (("'backports.shutil_which>=3.5.1',") "")) | |
804 | #t)) | |
00d3f022 DM |
805 | (delete 'check) |
806 | (add-after 'install 'check | |
807 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
39a7b720 | 808 | ;; Make installed package available for running the tests. |
00d3f022 DM |
809 | (add-installed-pythonpath inputs outputs) |
810 | (invoke "py.test")))))) | |
811 | (propagated-inputs | |
df724c9c VC |
812 | `(("python-configargparse" ,python-configargparse) |
813 | ("python-daemon" ,python-daemon) | |
814 | ("python-docutils" ,python-docutils) | |
815 | ("python-ecdsa" ,python-ecdsa) | |
00d3f022 | 816 | ("python-ed25519" ,python-ed25519) |
df724c9c VC |
817 | ("python-mnemonic" ,python-mnemonic) |
818 | ("python-pymsgbox" ,python-pymsgbox) | |
00d3f022 | 819 | ("python-semver" ,python-semver) |
df724c9c VC |
820 | ("python-unidecode" ,python-unidecode) |
821 | ("python-wheel" ,python-wheel))) | |
00d3f022 | 822 | (native-inputs |
df724c9c VC |
823 | `(("gnupg" ,gnupg) |
824 | ("python-mock" ,python-mock) | |
00d3f022 DM |
825 | ("python-pytest" ,python-pytest))) |
826 | (home-page "https://github.com/romanz/trezor-agent") | |
df724c9c | 827 | (synopsis "Use hardware wallets as SSH and GPG agent") |
00d3f022 DM |
828 | (description |
829 | "@code{libagent} is a library that allows using TREZOR, Keepkey and | |
830 | Ledger Nano as a hardware SSH/GPG agent.") | |
831 | (license license:lgpl3))) | |
832 | ||
6e9749ef DM |
833 | (define-public python-mnemonic |
834 | (package | |
835 | (name "python-mnemonic") | |
011ec062 | 836 | (version "0.19") |
6e9749ef DM |
837 | (source |
838 | (origin | |
839 | (method url-fetch) | |
840 | (uri (pypi-uri "mnemonic" version)) | |
841 | (sha256 | |
011ec062 | 842 | (base32 "0cd9prmdj8wzdmc7lxbf9lz0xrlkvak5ignag406mmfbn81fndsf")))) |
6e9749ef DM |
843 | (build-system python-build-system) |
844 | (propagated-inputs | |
845 | `(("python-pbkdf2" ,python-pbkdf2))) | |
846 | (home-page "https://github.com/trezor/python-mnemonic") | |
847 | (synopsis "Implementation of Bitcoin BIP-0039") | |
848 | (description "@code{mnemonic} is a library that provides an implementation | |
849 | of Bitcoin BIP-0039.") | |
850 | (license license:expat))) | |
851 | ||
852 | (define-public python2-mnemonic | |
853 | (package-with-python2 python-mnemonic)) | |
96f5e2e9 DM |
854 | |
855 | (define-public python-ledgerblue | |
856 | (package | |
857 | (name "python-ledgerblue") | |
858 | (version "0.1.16") | |
859 | (source | |
860 | (origin | |
861 | (method url-fetch) | |
862 | (uri (pypi-uri "ledgerblue" version)) | |
863 | (sha256 | |
864 | (base32 | |
865 | "010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb")))) | |
866 | (build-system python-build-system) | |
867 | (propagated-inputs | |
868 | `(("python-ecpy" ,python-ecpy) | |
869 | ("python-future" ,python-future) | |
870 | ("python-hidapi" ,python-hidapi) | |
871 | ("python-pillow" ,python-pillow) | |
872 | ("python-protobuf" ,python-protobuf) | |
873 | ("python-pycrypto" ,python-pycrypto))) | |
874 | (home-page "https://github.com/LedgerHQ/blue-loader-python") | |
875 | (synopsis "Python library to communicate with Ledger Blue/Nano S") | |
876 | (description "@code{ledgerblue} is a Python library to communicate with | |
877 | Ledger Blue/Nano S.") | |
878 | (license license:asl2.0))) | |
879 | ||
880 | (define-public python2-ledgerblue | |
881 | (package-with-python2 python-ledgerblue)) | |
882 | ||
1dca32e3 DM |
883 | (define-public python-trezor |
884 | (package | |
885 | (name "python-trezor") | |
9e7fccda | 886 | (version "0.12.1") |
1dca32e3 DM |
887 | (source |
888 | (origin | |
889 | (method url-fetch) | |
890 | (uri (pypi-uri "trezor" version)) | |
891 | (sha256 | |
9e7fccda | 892 | (base32 "1w19m9lws55k9sjhras47hpfpqwq1jm5vy135nj65yhkblygqg19")))) |
1dca32e3 DM |
893 | (build-system python-build-system) |
894 | (propagated-inputs | |
b4c698c8 | 895 | `(("python-click" ,python-click) |
8c16b8a4 | 896 | ("python-construct" ,python-construct) |
b4c698c8 | 897 | ("python-ecdsa" ,python-ecdsa) |
b4c698c8 | 898 | ("python-libusb1" ,python-libusb1) |
1dca32e3 | 899 | ("python-mnemonic" ,python-mnemonic) |
b4c698c8 | 900 | ("python-requests" ,python-requests) |
8c16b8a4 | 901 | ("python-typing-extensions" ,python-typing-extensions))) |
1dca32e3 | 902 | (native-inputs |
61497aa4 TGR |
903 | ;; For tests. |
904 | `(("protobuf" ,protobuf) | |
905 | ("python-black" ,python-black) | |
906 | ("python-protobuf" ,python-protobuf) | |
907 | ("python-isort" ,python-isort) | |
908 | ("python-pyqt" ,python-pyqt) | |
909 | ("python-pytest" ,python-pytest))) | |
1dca32e3 DM |
910 | (home-page "https://github.com/trezor/python-trezor") |
911 | (synopsis "Python library for communicating with TREZOR Hardware Wallet") | |
912 | (description "@code{trezor} is a Python library for communicating with | |
913 | TREZOR Hardware Wallet.") | |
914 | (license license:lgpl3))) | |
915 | ||
d6ddeffc DM |
916 | (define-public python-keepkey |
917 | (package | |
918 | (name "python-keepkey") | |
52311b51 | 919 | (version "6.0.3") |
d6ddeffc DM |
920 | (source |
921 | (origin | |
922 | (method url-fetch) | |
923 | (uri (pypi-uri "keepkey" version)) | |
924 | (sha256 | |
925 | (base32 | |
52311b51 | 926 | "0z3d0m6364v9dv0njs4cd5m5ai6j6v35xaaxfxl90m9vmyxy81vd")))) |
d6ddeffc DM |
927 | (build-system python-build-system) |
928 | (arguments | |
929 | `(#:phases | |
930 | (modify-phases %standard-phases | |
931 | (delete 'check) | |
932 | (add-after 'install 'check | |
933 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
934 | (add-installed-pythonpath inputs outputs) | |
935 | (apply invoke "python" (find-files "tests/unit" "\\.py$"))))))) | |
936 | (propagated-inputs | |
937 | `(("python-ecdsa" ,python-ecdsa) | |
938 | ("python-hidapi" ,python-hidapi) | |
02d9e5d2 | 939 | ("python-libusb1" ,python-libusb1) |
d6ddeffc DM |
940 | ("python-mnemonic" ,python-mnemonic) |
941 | ("python-protobuf" ,python-protobuf))) | |
942 | (home-page "https://github.com/keepkey/python-keepkey") | |
943 | (synopsis "Python library for communicating with KeepKey Hardware Wallet") | |
944 | (description "@code{keepkey} is a Python library for communicating with | |
945 | the KeepKey Hardware Wallet.") | |
946 | (license license:lgpl3))) | |
947 | ||
948 | (define-public python2-keepkey | |
949 | (package-with-python2 python-keepkey)) | |
950 | ||
d596fea5 DM |
951 | (define-public ledger-agent |
952 | (package | |
953 | (name "ledger-agent") | |
954 | (version "0.9.0") | |
955 | (source | |
956 | (origin | |
957 | (method url-fetch) | |
958 | (uri (pypi-uri "ledger_agent" version)) | |
959 | (sha256 | |
960 | (base32 | |
961 | "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92")))) | |
962 | (build-system python-build-system) | |
963 | (inputs | |
964 | `(("python-ledgerblue" ,python-ledgerblue) | |
965 | ("python-trezor-agent" ,python-trezor-agent))) | |
702a1012 | 966 | (home-page "https://github.com/romanz/trezor-agent") |
d596fea5 DM |
967 | (synopsis "Ledger as hardware SSH/GPG agent") |
968 | (description "This package allows using Ledger as hardware SSH/GPG agent. | |
969 | ||
5859fd6c MB |
970 | Usage for SSH: trezor-agent foo@@example.com --connect |
971 | Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\" | |
d596fea5 DM |
972 | Then set the environment variable GNUPGHOME to |
973 | \"${HOME}/.gnupg/trezor\".") | |
974 | (license license:lgpl3))) | |
47c8ea99 DM |
975 | |
976 | (define-public trezor-agent | |
977 | (package | |
978 | (name "trezor-agent") | |
7fafdadd | 979 | (version "0.10.0") |
47c8ea99 DM |
980 | (source |
981 | (origin | |
982 | (method url-fetch) | |
983 | (uri (pypi-uri "trezor_agent" version)) | |
984 | (sha256 | |
985 | (base32 | |
7fafdadd VC |
986 | "144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8")))) |
987 | (arguments | |
988 | ;; Tests fail with "AttributeError: module 'attr' has no attribute 's'". | |
989 | `(#:phases | |
990 | (modify-phases %standard-phases | |
991 | (add-after 'wrap 'fixup-agent-py | |
992 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
993 | (let* ((out (assoc-ref outputs "out"))) | |
994 | ;; overwrite the wrapper with the real thing. | |
995 | (install-file "./trezor_agent.py" | |
996 | (string-append out "/bin")) | |
997 | #t)))))) | |
47c8ea99 DM |
998 | (build-system python-build-system) |
999 | (inputs | |
1000 | `(("python-trezor" ,python-trezor) | |
1001 | ("python-trezor-agent" ,python-trezor-agent))) | |
7fafdadd VC |
1002 | (native-inputs |
1003 | `(("python-hidapi" ,python-hidapi))) | |
1004 | (home-page "https://github.com/romanz/trezor-agent") | |
47c8ea99 DM |
1005 | (synopsis "Using Trezor as hardware SSH/GPG agent") |
1006 | (description "This package allows using Trezor as a hardware SSH/GPG | |
1007 | agent.") | |
1008 | (license license:lgpl3))) | |
50c4d676 DM |
1009 | |
1010 | (define-public keepkey-agent | |
1011 | (package | |
1012 | (name "keepkey-agent") | |
1013 | (version "0.9.0") | |
1014 | (source | |
1015 | (origin | |
1016 | (method url-fetch) | |
1017 | (uri (pypi-uri "keepkey_agent" version)) | |
1018 | (sha256 | |
1019 | (base32 | |
1020 | "03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27")))) | |
1021 | (build-system python-build-system) | |
1022 | (inputs | |
1023 | `(("python-keepkey" ,python-keepkey) | |
1024 | ("python-trezor-agent" ,python-trezor-agent))) | |
702a1012 | 1025 | (home-page "https://github.com/romanz/trezor-agent") |
50c4d676 DM |
1026 | (synopsis "KeepKey as hardware SSH/GPG agent") |
1027 | (description "This package allows using KeepKey as a hardware SSH/GPG | |
1028 | agent.") | |
1029 | (license license:lgpl3))) | |
3da86c52 AP |
1030 | |
1031 | (define-public python-stdnum | |
1032 | (package | |
1033 | (name "python-stdnum") | |
e918eaf5 | 1034 | (version "1.14") |
3da86c52 AP |
1035 | (source |
1036 | (origin | |
1037 | (method url-fetch) | |
1038 | (uri (pypi-uri "python-stdnum" version)) | |
1039 | (sha256 | |
e918eaf5 | 1040 | (base32 "070vd9zgvq0jchs4xc4j1h4r1l1lg4wwb8xs3p25k8c2xjw94fpx")))) |
3da86c52 | 1041 | (build-system python-build-system) |
200acbc3 MB |
1042 | (arguments |
1043 | '(#:phases (modify-phases %standard-phases | |
1044 | (replace 'check | |
1045 | (lambda _ | |
1046 | (invoke "nosetests")))))) | |
1047 | (native-inputs | |
1048 | `(("python-nose" ,python-nose))) | |
e918eaf5 TGR |
1049 | (home-page "https://arthurdejong.org/python-stdnum/") |
1050 | (synopsis "Python module to handle standardized number and code formats") | |
3da86c52 AP |
1051 | (description |
1052 | "This is a Python library that aims to provide functions to handle, | |
1053 | parse and validate standard numbers. | |
1054 | The module supports more than 100 different number formats | |
1055 | amongst which a great number of VAT and other tax numbers, | |
1056 | personal identity and company identification codes, | |
1057 | international standard numbers (ISBN, IBAN, EAN, etc.) | |
1058 | and various other formats. | |
1059 | The module also inclused implementations of the Verhoeff, | |
1060 | Luhn and family of ISO/IEC 7064 check digit algorithms. ") | |
1061 | (license license:lgpl2.1+))) | |
1062 | ||
1063 | (define-public python2-stdnum | |
1064 | (package-with-python2 python-stdnum)) | |
730553d7 | 1065 | |
c7299015 NG |
1066 | (define-public python-duniterpy |
1067 | (package | |
1068 | (name "python-duniterpy") | |
fbfaba8a | 1069 | (version "0.57.0") |
c7299015 NG |
1070 | (source |
1071 | (origin | |
c1d79b49 NG |
1072 | (method url-fetch) |
1073 | (uri (pypi-uri "duniterpy" version)) | |
c7299015 | 1074 | (sha256 |
fbfaba8a | 1075 | (base32 "0rw2c7r9gcqhymp82gbk1ky45zqbypsi2q5x4vdwjc6g00kh7h6l")))) |
c7299015 | 1076 | (build-system python-build-system) |
1427d888 | 1077 | (arguments |
c1d79b49 NG |
1078 | ;; FIXME: Tests fail with: "ModuleNotFoundError: No module named |
1079 | ;; 'tests'". Not sure how to handle this. | |
42a57df8 NG |
1080 | `(#:tests? #f |
1081 | #:phases | |
1082 | (modify-phases %standard-phases | |
c1d79b49 NG |
1083 | ;; "setup.py" tries to open missing "requirements.txt". |
1084 | (add-after 'unpack 'ignore-missing-file | |
42a57df8 | 1085 | (lambda _ |
c1d79b49 NG |
1086 | (substitute* "setup.py" |
1087 | (("open\\('requirements\\.txt'\\)") "[]")) | |
42a57df8 | 1088 | #t))))) |
c7299015 | 1089 | (propagated-inputs |
352033f3 | 1090 | `(("aiohttp" ,python-aiohttp) |
c1d79b49 | 1091 | ("attrs" ,python-attrs) |
352033f3 NG |
1092 | ("base58" ,python-base58) |
1093 | ("jsonschema" ,python-jsonschema) | |
1094 | ("libnacl" ,python-libnacl) | |
1095 | ("pyaes" ,python-pyaes) | |
1096 | ("pylibscrypt" ,python-pylibscrypt) | |
1097 | ("pypeg2" ,python-pypeg2))) | |
9f1a2be2 | 1098 | (home-page "https://git.duniter.org/clients/python/duniterpy") |
c7299015 NG |
1099 | (synopsis "Python implementation of Duniter API") |
1100 | (description "@code{duniterpy} is an implementation of | |
207a79b2 | 1101 | @uref{https://github.com/duniter/duniter/, duniter} API. Its |
c7299015 NG |
1102 | main features are: |
1103 | @itemize | |
207a79b2 NG |
1104 | @item Support Duniter's Basic Merkle API and protocol |
1105 | @item Asynchronous/synchronous without threads | |
1106 | @item Support HTTP, HTTPS and Web Socket transport for Basic Merkle API | |
1107 | @item Support Elasticsearch Duniter4j API | |
c7299015 | 1108 | @item Duniter signing key |
207a79b2 | 1109 | @item Sign/verify and encrypt/decrypt messages with the Duniter credentials |
c7299015 NG |
1110 | @end itemize") |
1111 | (license license:gpl3+))) | |
1112 | ||
730553d7 NG |
1113 | (define-public silkaj |
1114 | (package | |
1115 | (name "silkaj") | |
293bc15d | 1116 | (version "0.7.6") |
730553d7 NG |
1117 | (source |
1118 | (origin | |
293bc15d NG |
1119 | (method url-fetch) |
1120 | (uri (pypi-uri "silkaj" version)) | |
730553d7 | 1121 | (sha256 |
293bc15d | 1122 | (base32 "0hrn0jwg415z7wjkp0myvw85wszlfi18f56j03075xxakr4dmi2j")))) |
730553d7 NG |
1123 | (build-system python-build-system) |
1124 | (arguments | |
e627052f | 1125 | `(#:tests? #f)) ;no test |
730553d7 | 1126 | (inputs |
c14b3a8d NG |
1127 | `(("click" ,python-click) |
1128 | ("duniterpy" ,python-duniterpy) | |
c14b3a8d | 1129 | ("pynacl" ,python-pynacl) |
f41378b7 NG |
1130 | ("tabulate" ,python-tabulate) |
1131 | ("texttable" ,python-texttable))) | |
293bc15d | 1132 | (home-page "https://git.duniter.org/clients/python/silkaj") |
730553d7 NG |
1133 | (synopsis "Command line client for Duniter network") |
1134 | (description "@code{Silkaj} is a command line client for the | |
1135 | @uref{https://github.com/duniter/duniter/, Duniter} network. | |
1136 | ||
1137 | Its features are: | |
1138 | @itemize | |
1139 | @item information about currency, | |
1140 | @item issuers difficulty to generate next block, | |
1141 | @item network view of nodes, | |
1142 | @item list of last issuers, | |
1143 | @item send transactions, | |
1144 | @item get account amount. | |
1145 | @end itemize") | |
1146 | (license license:agpl3+))) | |
90bb244f TLC |
1147 | |
1148 | (define-public grisbi | |
1149 | (package | |
1150 | (name "grisbi") | |
1151 | (version "1.2.2") | |
1152 | (source | |
1153 | (origin | |
1154 | (method url-fetch) | |
1155 | (uri (string-append | |
1156 | "mirror://sourceforge/grisbi/grisbi%20stable/" | |
1157 | (version-major+minor version) ".x/" version | |
1158 | "/grisbi-" version ".tar.bz2")) | |
1159 | (sha256 | |
1160 | (base32 | |
1161 | "1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw")))) | |
1162 | (build-system glib-or-gtk-build-system) | |
1163 | (arguments | |
1164 | `(#:configure-flags (list "--without-ofx"))) | |
1165 | (propagated-inputs | |
1166 | `(("dconf" ,dconf))) | |
1167 | (native-inputs | |
1168 | `(("glib" ,glib "bin") ; glib-compile-schemas | |
1169 | ("pkg-config" ,pkg-config) | |
1170 | ("intltool" ,intltool))) | |
1171 | (inputs | |
1172 | `(("gtk+" ,gtk+) | |
1173 | ("libgsf" ,libgsf))) | |
1174 | (synopsis "Personal accounting application") | |
1175 | (description "Grisbi is a personal accounting application written by | |
1176 | French developers that is designed to follow French accounting rules. | |
1177 | Grisbi can manage multiple accounts, currencies and users. It manages | |
1178 | third party, expenditure and receipt categories, budgetary lines, | |
1179 | financial years, budget estimates, bankcard management and other | |
1180 | information.") | |
9c99cb22 | 1181 | (home-page "https://grisbi.org") |
90bb244f | 1182 | (license license:gpl2+))) |
01b37d0f | 1183 | |
0639a240 MB |
1184 | (define-public trezord-udev-rules |
1185 | (let ((commit "bff7fdfe436c727982cc553bdfb29a9021b423b0") | |
1186 | (revision "0")) | |
1187 | (package | |
1188 | (name "trezord-udev-rules") | |
1189 | (version (git-version "0.0.0" revision commit)) | |
1190 | (source | |
1191 | (origin | |
1192 | (method git-fetch) | |
1193 | (uri (git-reference | |
b0e7b699 | 1194 | (url "https://github.com/trezor/trezor-common") |
0639a240 MB |
1195 | (commit commit))) |
1196 | (sha256 | |
1197 | (base32 | |
1198 | "14mrirrn68if7ja6qdk9qlxs1hv0f21vrxy5ncnms0gx9iwakp2l")) | |
1199 | (file-name (git-file-name name version)))) | |
1200 | (build-system copy-build-system) | |
1201 | (arguments | |
1202 | '(#:install-plan | |
1203 | '(("./udev/51-trezor.rules" "lib/udev/rules.d/")))) | |
1204 | (home-page "https://github.com/trezor/trezor-common") | |
1205 | (synopsis "Udev rules for trezord") | |
1206 | (description | |
1207 | "This contains the udev rules for trezord. This will let a user run | |
1208 | trezord as a regular user instead of needing to it run as root.") | |
1209 | (license license:lgpl3+)))) | |
1210 | ||
01b37d0f | 1211 | (define-public trezord |
1212 | (package | |
1213 | (name "trezord") | |
abb37b3c | 1214 | (version "2.0.29") |
01b37d0f | 1215 | (source |
1216 | (origin | |
1217 | (method git-fetch) | |
1218 | (uri (git-reference | |
b0e7b699 | 1219 | (url "https://github.com/trezor/trezord-go") |
01b37d0f | 1220 | (commit (string-append "v" version)))) |
1221 | (sha256 | |
1222 | (base32 | |
abb37b3c | 1223 | "1ks1fa0027s3xp0z6qp0dxmayvrb4dwwscfhbx7da0khp153f2cp")) |
01b37d0f | 1224 | (file-name (git-file-name name version)))) |
1225 | (build-system go-build-system) | |
1226 | (arguments | |
1227 | '(#:import-path "github.com/trezor/trezord-go")) | |
1228 | (home-page "https://trezor.io") | |
1229 | (synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)") | |
1230 | (description "This allows a Trezor hardware wallet to communicate to the | |
1231 | Trezor wallet.") | |
1232 | (license license:lgpl3+))) | |
af012922 | 1233 | |
1234 | (define-public bitcoin-abc | |
1235 | (package | |
af012922 | 1236 | (name "bitcoin-abc") |
4338d974 | 1237 | (version "0.21.12") |
af012922 | 1238 | (source (origin |
1239 | (method url-fetch) | |
1240 | (uri (string-append "https://download.bitcoinabc.org/" | |
28d46d9d | 1241 | version "/src/bitcoin-abc-" |
af012922 | 1242 | version ".tar.gz")) |
1243 | (sha256 | |
1244 | (base32 | |
4338d974 | 1245 | "1amzwy3gpl8ai90dsy7g0z51qq8vxfzbf642wn4bfynb8jmw3kx5")))) |
f7237a2e | 1246 | (build-system cmake-build-system) |
054ff198 | 1247 | (native-inputs |
f7237a2e | 1248 | `(("pkg-config" ,pkg-config) |
054ff198 GLV |
1249 | ("python" ,python) ; for the tests |
1250 | ("util-linux" ,util-linux) ; provides the hexdump command for tests | |
1251 | ("qttools" ,qttools))) | |
28d46d9d GLV |
1252 | (inputs |
1253 | `(("bdb" ,bdb-5.3) | |
1254 | ("boost" ,boost) | |
59668de4 | 1255 | ("jemalloc" ,jemalloc) |
28d46d9d GLV |
1256 | ("libevent" ,libevent) |
1257 | ("miniupnpc" ,miniupnpc) | |
1258 | ("openssl" ,openssl) | |
1259 | ("protobuf" ,protobuf) | |
054ff198 GLV |
1260 | ("qrencode" ,qrencode) |
1261 | ("qtbase" ,qtbase) | |
f7237a2e | 1262 | ("zeromq" ,zeromq) |
054ff198 | 1263 | ("zlib" ,zlib))) |
f7237a2e GLV |
1264 | (arguments |
1265 | `(#:phases | |
1266 | (modify-phases %standard-phases | |
1267 | (add-before 'configure 'make-qt-deterministic | |
1268 | (lambda _ | |
1269 | ;; Make Qt deterministic. | |
1270 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
1271 | #t)) | |
1272 | (add-before 'check 'set-home | |
1273 | (lambda _ | |
1274 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME | |
1275 | #t)) | |
1276 | (add-after 'check 'check-functional | |
1277 | (lambda _ | |
1278 | (invoke | |
1279 | "python3" "./test/functional/test_runner.py" | |
1280 | (string-append "--jobs=" (number->string (parallel-job-count))) | |
1281 | ;; TODO: find why the abc-miner-fund test fails. | |
1282 | "--exclude=abc-miner-fund") | |
1283 | #t))))) | |
af012922 | 1284 | (home-page "https://www.bitcoinabc.org/") |
1285 | (synopsis "Bitcoin ABC peer-to-peer full node for the Bitcoin Cash protocol") | |
1286 | (description | |
1287 | "Bitcoin Cash brings sound money to the world, fulfilling the original | |
1288 | promise of Bitcoin as Peer-to-Peer Electronic Cash. Merchants and users are | |
1289 | empowered with low fees and reliable confirmations is a digital currency that | |
1290 | enables instant payments to anyone anywhere in the world. It uses | |
1291 | peer-to-peer technology to operate without central authority: managing | |
1292 | transactions and issuing money are carried out collectively by the network. | |
1293 | As a fork it implemented changes lowering the time between blocks and now | |
1294 | offers confimations after less than 5 seconds and have significantly lower | |
1295 | fees that BTC. Bitcoin ABC is the reference implementation of the Bitcoin | |
1296 | Cash protocol. This package provides the Bitcoin Cash command line client and | |
f7237a2e GLV |
1297 | a client based on Qt. This is a fork of Bitcoin Core.") |
1298 | (license license:expat))) | |
63ca1a89 | 1299 | |
952fe2da KK |
1300 | (define-public libofx |
1301 | (package | |
1302 | (name "libofx") | |
1303 | (version "0.9.15") | |
1304 | (source (origin | |
1305 | (method git-fetch) | |
1306 | (uri (git-reference | |
1307 | (url "https://github.com/libofx/libofx") | |
1308 | (commit version))) | |
1309 | (file-name (git-file-name name version)) | |
1310 | (sha256 | |
1311 | (base32 | |
1312 | "1jx56ma351p8af8dvavygjwf6ipa7qbgq7bpdsymwj27apdnixfy")))) | |
1313 | (build-system gnu-build-system) | |
1314 | (arguments | |
c17fb659 MB |
1315 | '(#:parallel-build? #f ;fails with -j64 |
1316 | #:configure-flags | |
952fe2da KK |
1317 | (list (string-append "--with-opensp-includes=" |
1318 | (assoc-ref %build-inputs "opensp") | |
1319 | "/include/OpenSP")))) | |
1320 | (native-inputs | |
1321 | `(("autoconf" ,autoconf) | |
1322 | ("automake" ,automake) | |
1323 | ("gengetopt" ,gengetopt) | |
1324 | ("help2man" ,help2man) | |
1325 | ("libtool" ,libtool) | |
1326 | ("pkg-config" ,pkg-config))) | |
1327 | (inputs | |
1328 | `(("curl" ,curl) | |
1329 | ("libxml++-2" ,libxml++-2) | |
1330 | ("opensp" ,opensp))) | |
1331 | (home-page "http://libofx.sourceforge.net/") | |
1332 | (synopsis "Library supporting the Open Financial Exchange format") | |
1333 | (description | |
8b08cf4f | 1334 | "The LibOFX library is an API designed to allow applications to very easily |
952fe2da KK |
1335 | support OFX command responses, usually provided by financial institutions. The |
1336 | following three utilities are included with the library: | |
1337 | @enumerate | |
1338 | @item @code{ofxdump} | |
1339 | @item @code{ofx2qif} | |
1340 | @item @code{ofxconnect} | |
1341 | @end enumerate") | |
1342 | (license license:gpl2+))) | |
1343 | ||
63ca1a89 KK |
1344 | (define-public opensp |
1345 | (package | |
1346 | (name "opensp") | |
1347 | (version "1.5.2") | |
1348 | (source (origin | |
1349 | (method url-fetch) | |
1350 | (uri (string-append "mirror://sourceforge/openjade/opensp/" | |
1351 | version "/OpenSP-" version ".tar.gz")) | |
1352 | (sha256 | |
1353 | (base32 | |
1354 | "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p")))) | |
1355 | (build-system gnu-build-system) | |
1356 | (native-inputs | |
1357 | `(("gettext" ,gettext-minimal))) | |
1358 | (inputs | |
1359 | `(("docbook-xml" ,docbook-xml-4.1.2) | |
1360 | ("docbook-xsl" ,docbook-xsl) | |
1361 | ("xmlto" ,xmlto))) | |
1362 | (arguments | |
1363 | `(;; TODO: Fix and enable tests. | |
1364 | #:tests? #f | |
1365 | #:phases | |
1366 | (modify-phases %standard-phases | |
1367 | (add-after 'unpack 'patch-docbook-paths | |
1368 | (lambda* (#:key inputs #:allow-other-keys) | |
1369 | (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml") | |
1370 | "/xml/dtd/docbook")) | |
1371 | (xsldoc (string-append (assoc-ref inputs "docbook-xsl") | |
1372 | "/xml/xsl/docbook-xsl-" | |
1373 | ,(package-version docbook-xsl)))) | |
1374 | (substitute* (find-files "docsrc" "\\.xml$") | |
1375 | (("/usr/share/sgml/docbook/xml-dtd-4.1.2") xmldoc) | |
1376 | (("http://.*/docbookx\\.dtd") | |
1377 | (string-append xmldoc "/docbookx.dtd"))) | |
1378 | ;; Directly pass the path to the stylesheet to xmlto. | |
1379 | (substitute* "docsrc/Makefile.in" | |
1380 | (("\\$\\(XMLTO\\)") | |
1381 | (string-append "$(XMLTO) -x " xsldoc | |
1382 | "/manpages/docbook.xsl"))) | |
1383 | #t)))))) | |
1384 | (home-page "http://openjade.sourceforge.net/") | |
1385 | (synopsis "Suite of SGML/XML processing tools") | |
1386 | (description "OpenSP is an object-oriented toolkit for SGML parsing and | |
1387 | entity management.") | |
1388 | (license | |
1389 | ;; expat license with added clause regarding advertising | |
1390 | (license:non-copyleft | |
1391 | "file://COPYING" | |
1392 | "See COPYING in the distribution.")))) | |
0edbb65d GLV |
1393 | |
1394 | (define-public bitcoin-unlimited | |
1395 | (package | |
1396 | (name "bitcoin-unlimited") | |
89c5b924 | 1397 | (version "1.8.0.0") |
0edbb65d GLV |
1398 | (source |
1399 | (origin | |
1400 | (method git-fetch) | |
1401 | (uri (git-reference | |
b0e7b699 | 1402 | (url "https://github.com/BitcoinUnlimited/BitcoinUnlimited") |
89c5b924 | 1403 | (commit (string-append "BCHunlimited" version)))) |
0edbb65d GLV |
1404 | (file-name (git-file-name name version)) |
1405 | (sha256 | |
89c5b924 | 1406 | (base32 "1ivkig6q7i4n389dg1zv06cmfki20bjq0slmshx0p5a1aavkqj7k")))) |
0edbb65d GLV |
1407 | (build-system gnu-build-system) |
1408 | (native-inputs | |
1409 | `(("autoconf" ,autoconf) | |
1410 | ("automake" ,automake) | |
1411 | ("libtool" ,libtool) | |
1412 | ("pkg-config" ,pkg-config) | |
1413 | ("python" ,python) ; for the tests | |
1414 | ("util-linux" ,util-linux) ; provides the hexdump command for tests | |
1415 | ("qttools" ,qttools))) | |
1416 | (inputs | |
1417 | `(("bdb" ,bdb-4.8) | |
1418 | ("boost" ,boost) | |
1419 | ("libevent" ,libevent) | |
1420 | ("miniupnpc" ,miniupnpc) | |
1421 | ("openssl" ,openssl) | |
1422 | ("protobuf" ,protobuf) | |
1423 | ("qrencode" ,qrencode) | |
1424 | ("qtbase" ,qtbase) | |
1425 | ("zeromq" ,zeromq) | |
1426 | ("zlib" ,zlib))) | |
1427 | (arguments | |
1428 | `(#:configure-flags | |
1429 | (list | |
1430 | ;; Boost is not found unless specified manually. | |
1431 | (string-append "--with-boost=" | |
1432 | (assoc-ref %build-inputs "boost")) | |
1433 | ;; XXX: The configure script looks up Qt paths by | |
1434 | ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick | |
1435 | ;; up executables residing in 'qttools', so we specify them here. | |
1436 | (string-append "ac_cv_path_LRELEASE=" | |
1437 | (assoc-ref %build-inputs "qttools") | |
1438 | "/bin/lrelease") | |
1439 | (string-append "ac_cv_path_LUPDATE=" | |
1440 | (assoc-ref %build-inputs "qttools") | |
1441 | "/bin/lupdate")) | |
1442 | #:phases | |
1443 | (modify-phases %standard-phases | |
89c5b924 GLV |
1444 | (add-after 'unpack 'fix-build |
1445 | (lambda _ | |
1446 | ;; The 'stack' header was not included in unlimited.cpp, which | |
1447 | ;; caused the build to fail. | |
1448 | (substitute* "src/unlimited.cpp" | |
1449 | (("#include <queue>" all) | |
1450 | (string-append all "\n#include <stack>"))) | |
1451 | #t)) | |
0edbb65d GLV |
1452 | (add-after 'unpack 'fix-tests |
1453 | (lambda _ | |
89c5b924 GLV |
1454 | ;; TODO: Find why txvalidationcache_tests fails and |
1455 | ;; utilprocess_tests never ends. Disable for now. | |
1456 | (substitute* "src/Makefile.test.include" | |
1457 | (("test/txvalidationcache_tests.cpp") | |
1458 | "") | |
1459 | (("test/utilprocess_tests.cpp") | |
1460 | "")) | |
0edbb65d GLV |
1461 | #t)) |
1462 | (add-before 'configure 'make-qt-deterministic | |
1463 | (lambda _ | |
1464 | ;; Make Qt deterministic. | |
1465 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
1466 | #t)) | |
1467 | (add-before 'check 'set-home | |
1468 | (lambda _ | |
1469 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME | |
1470 | #t))))) | |
1471 | (home-page "https://www.bitcoinunlimited.info/") | |
1472 | (synopsis "Client for the Bitcoin Cash protocol") | |
1473 | (description | |
1474 | "Bitcoin Unlimited is a client for the Bitcoin Cash peer-to-peer | |
1475 | electronic cash system. This package provides a command line client and | |
1476 | a Qt GUI.") | |
1477 | (license license:expat))) | |
f1f72484 | 1478 | |
3e6aa0ce T |
1479 | (define-public fulcrum |
1480 | (package | |
1481 | (name "fulcrum") | |
737b87ce | 1482 | (version "1.1.1") |
3e6aa0ce T |
1483 | (source |
1484 | (origin | |
1485 | (method url-fetch) | |
1486 | (uri (string-append "https://gitlab.com/FloweeTheHub/fulcrum/-/archive/v" | |
1487 | version "/fulcrum-v" version ".tar.gz")) | |
1488 | (sha256 | |
737b87ce | 1489 | (base32 "04w5gw02d39caa8a0l6wkn87kc43zzad2prqsyrcq97vlbkdx6x6")))) |
3e6aa0ce T |
1490 | (build-system gnu-build-system) |
1491 | (arguments | |
1492 | `(#:phases | |
1493 | (modify-phases %standard-phases | |
1494 | ;; Call qmake instead of configure to create a Makefile. | |
1495 | (replace 'configure | |
1496 | (lambda _ | |
1497 | (invoke | |
1498 | "qmake" | |
1499 | (string-append "PREFIX=" %output) | |
1500 | "features=")))))) | |
1501 | (native-inputs | |
1502 | `(("qttools" ,qttools))) | |
1503 | (inputs | |
1504 | `(("python" ,python) | |
1505 | ("qtbase" ,qtbase) | |
1506 | ("rocksdb" ,rocksdb) | |
1507 | ("zlib" ,zlib))) | |
1508 | (home-page "https://gitlab.com/FloweeTheHub/fulcrum/") | |
1509 | (synopsis "Fast and nimble SPV server for Bitcoin Cash") | |
1510 | (description | |
1511 | "Flowee Fulcrum is a server that is the back-end for @acronym{SPV, | |
1512 | Simplified Payment Verification} wallets, it provides the full API for those | |
1513 | walets in a fast and small server. The full data is stored in a full node, | |
1514 | like Flowee the Hub, which Fulcrum connects to over RPC.") | |
1515 | (license license:gpl3+))) | |
1516 | ||
87b343f7 T |
1517 | (define-public flowee |
1518 | (package | |
1519 | (name "flowee") | |
1bea1b35 | 1520 | (version "2020.04.1") |
87b343f7 T |
1521 | (source |
1522 | (origin | |
1523 | (method url-fetch) | |
1524 | (uri (string-append "https://gitlab.com/FloweeTheHub/thehub/-/archive/" | |
1525 | version "/thehub-" version ".tar.gz")) | |
1526 | (sha256 | |
1bea1b35 | 1527 | (base32 "1vwvaxm3b71pfx8l4rrv06wqks6xdf2333w856b36s1bzvj53rhc")))) |
87b343f7 T |
1528 | (build-system cmake-build-system) |
1529 | (arguments | |
1530 | `(#:configure-flags '("-Dbuild_tests=ON" "-Denable_gui=OFF") | |
1531 | #:phases | |
1532 | (modify-phases %standard-phases | |
1533 | (add-before 'configure 'make-qt-deterministic | |
1534 | (lambda _ | |
1535 | ;; Make Qt deterministic. | |
1536 | (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") | |
1537 | #t)) | |
1538 | (add-before 'configure 'disable-black-box | |
1539 | ;; the black-box testing runs full hubs and lets them interact. | |
1540 | ;; this is more fragile and a slow machine, or low memory machine, may | |
1541 | ;; make the tests timeout and fail. We just disable them here. | |
1542 | (lambda _ | |
1543 | (substitute* "testing/CMakeLists.txt" | |
1544 | (("test_api") "")) | |
cc6653e7 T |
1545 | (substitute* "testing/CMakeLists.txt" |
1546 | (("add_subdirectory\\(api\\)") "")) | |
87b343f7 T |
1547 | #t)) |
1548 | (add-after 'configure 'set-build-info | |
1549 | ;; Their genbuild.sh to generate a build.h fails in guix (no .git dir) . | |
1550 | ;; Its purpose is to write the tag name in the build.h file. We do that | |
1551 | ;; here instead. | |
1552 | (lambda _ | |
1553 | (with-output-to-file "include/build.h" | |
1554 | (lambda _ | |
1555 | (display | |
1556 | (string-append "#define BUILD_DESC " "\"", version "\"")))))) | |
1557 | (add-before 'check 'set-home | |
1558 | (lambda _ | |
1559 | (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME | |
1560 | #t)) | |
1561 | (replace 'check | |
1562 | (lambda _ | |
1563 | (invoke "make" "check" "-C" "testing")))))) | |
1564 | (inputs | |
1565 | `(("boost" ,boost) | |
1566 | ("gmp" ,gmp) | |
1567 | ("libevent" ,libevent) | |
1568 | ("miniupnpc" ,miniupnpc) | |
1569 | ("openssl" ,openssl) | |
1570 | ("qtbase" ,qtbase))) | |
1571 | (native-inputs | |
1572 | `(("pkg-config" ,pkg-config) | |
1573 | ("qttools" ,qttools) | |
1574 | ("util-linux" ,util-linux))) ; provides the hexdump command for tests | |
1575 | (home-page "https://flowee.org") | |
1576 | (synopsis "Flowee infrastructure tools and services") | |
1577 | (description | |
1578 | "Flowee packages all tier-1 applications and services from the Flowee group. | |
1579 | This includes components like The Hub and Indexer which and various others | |
1580 | that allows you to run services and through them access the Bitcoin Cash networks.") | |
1581 | (license license:gpl3+))) | |
1582 | ||
1583 | ||
f1f72484 CLW |
1584 | (define-public beancount |
1585 | (package | |
1586 | (name "beancount") | |
1587 | (version "2.2.3") | |
1588 | (source | |
1589 | (origin | |
1590 | (method url-fetch) | |
1591 | (uri (pypi-uri "beancount" version)) | |
1592 | (sha256 | |
1593 | (base32 | |
1594 | "0pcfl2rx2ng06i4f9izdpnlnb1k0rdzsckbzzn4cn4ixfzyssm0m")) | |
1595 | (patches (search-patches "beancount-disable-googleapis-fonts.patch")))) | |
1596 | (build-system python-build-system) | |
1597 | (arguments | |
1598 | `(#:tests? #f ; Says test is missing, not sure why | |
1599 | #:phases | |
1600 | (modify-phases %standard-phases | |
1601 | ;; Not importing the googleapis package for now | |
1602 | (add-after 'unpack 'ignore-googleapis | |
1603 | (lambda _ | |
1604 | (substitute* "setup.py" | |
1605 | (("'google-api-python-client',") "")) | |
1606 | #t))))) | |
9afc618e | 1607 | (inputs |
f1f72484 CLW |
1608 | `(("python-beautifulsoup4" ,python-beautifulsoup4) |
1609 | ("python-bottle" ,python-bottle) | |
1610 | ("python-chardet" ,python-chardet) | |
1611 | ("python-dateutil" ,python-dateutil) | |
1612 | ("python-lxml" ,python-lxml) | |
1613 | ("python-magic" ,python-magic) | |
1614 | ("python-ply" ,python-ply) | |
f1f72484 | 1615 | ("python-requests" ,python-requests))) |
74b992fb MB |
1616 | (native-inputs |
1617 | `(("python-pytest" ,python-pytest))) | |
f1f72484 CLW |
1618 | (home-page "http://furius.ca/beancount") |
1619 | (synopsis "Command-line double-entry accounting tool") | |
1620 | (description | |
1621 | "Beancount is a double-entry bookkeeping computer language that lets you | |
1622 | define financial transaction records in a text file, read them in memory, | |
1623 | generate a variety of reports from them, and provides a web interface.") | |
1624 | (license license:gpl2))) | |
805d7021 MB |
1625 | |
1626 | ;; The beancount source ships with elisp in a subdirectory | |
1627 | (define-public emacs-beancount | |
1628 | (package | |
1629 | (inherit beancount) | |
1630 | (name "emacs-beancount") | |
1631 | (build-system emacs-build-system) | |
1632 | (arguments | |
1633 | `(#:tests? #f ;no tests | |
1634 | #:phases | |
1635 | (modify-phases %standard-phases | |
1636 | (add-before 'install 'chdir-emacs | |
1637 | (lambda _ | |
1638 | (chdir "editors/emacs") | |
1639 | #t))))) | |
48cb6408 MB |
1640 | (inputs '()) |
1641 | (native-inputs '()) | |
805d7021 MB |
1642 | (synopsis "Emacs mode for beancount") |
1643 | (description | |
1644 | "Emacs-beancount is an Emacs mode for the Beancount accounting tool."))) |