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