2015-09-17 21:07:22 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2016-07-23 20:18:44 +02:00
|
|
|
;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
|
2018-07-29 15:03:59 +02:00
|
|
|
;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
2016-05-07 19:20:47 +02:00
|
|
|
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
|
2016-10-17 10:39:21 +02:00
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2017-01-02 14:32:38 +01:00
|
|
|
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
2017-09-09 19:47:34 +02:00
|
|
|
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
|
2017-11-27 12:30:22 +01:00
|
|
|
;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
|
2019-04-05 05:48:19 +02:00
|
|
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2016-10-18 06:59:53 +02:00
|
|
|
;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
|
2018-01-22 19:24:20 +01:00
|
|
|
;;; Copyright © 2018 Adriano Peluso <catonano@gmail.com>
|
2019-02-02 13:41:46 +01:00
|
|
|
;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2018-07-04 14:41:30 +02:00
|
|
|
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
|
2019-06-17 10:44:35 +02:00
|
|
|
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
|
2019-07-12 18:05:00 +02:00
|
|
|
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
|
2019-07-31 02:11:59 +02:00
|
|
|
;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
|
2015-09-17 21:07:22 +02:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages finance)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2018-05-16 15:52:51 +02:00
|
|
|
#:use-module (guix git-download)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system cmake)
|
|
|
|
#:use-module (guix build-system python)
|
2019-07-12 18:05:00 +02:00
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
2019-07-31 02:11:59 +02:00
|
|
|
#:use-module (guix build-system go)
|
2019-07-12 18:05:00 +02:00
|
|
|
#:use-module (guix utils)
|
2016-10-18 06:59:53 +02:00
|
|
|
#:use-module (gnu packages)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages boost)
|
|
|
|
#:use-module (gnu packages check)
|
2019-06-17 10:44:35 +02:00
|
|
|
#:use-module (gnu packages compression)
|
2018-07-08 19:39:26 +02:00
|
|
|
#:use-module (gnu packages crypto)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages databases)
|
|
|
|
#:use-module (gnu packages documentation)
|
|
|
|
#:use-module (gnu packages dns)
|
|
|
|
#:use-module (gnu packages emacs)
|
gnu: Move dbm databases to new module.
* gnu/packages/databases.scm (gdbm, bdb, bdb-5.3): Move from here...
* gnu/packages/dbm.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/audio.scm,
gnu/packages/avahi.scm,
gnu/packages/backup.scm,
gnu/packages/cobol.scm,
gnu/packages/cyrus-sasl.scm,
gnu/packages/databases.scm,
gnu/packages/finance.scm,
gnu/packages/game-development.scm,
gnu/packages/gnome.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/man.scm,
gnu/packages/nvi.scm,
gnu/packages/openldap.scm,
gnu/packages/package-management.scm,
gnu/packages/php.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/sawfish.scm: Update module references.
2019-01-16 14:48:47 +01:00
|
|
|
#:use-module (gnu packages dbm)
|
2019-07-12 18:05:00 +02:00
|
|
|
#:use-module (gnu packages gnome)
|
|
|
|
#:use-module (gnu packages glib)
|
2019-02-07 01:07:15 +01:00
|
|
|
#:use-module (gnu packages gnupg)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages graphviz)
|
|
|
|
#:use-module (gnu packages groff)
|
2019-07-12 18:05:00 +02:00
|
|
|
#:use-module (gnu packages gtk)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages libedit)
|
|
|
|
#:use-module (gnu packages libevent)
|
|
|
|
#:use-module (gnu packages libunwind)
|
2017-12-28 08:37:20 +01:00
|
|
|
#:use-module (gnu packages libusb)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2018-07-08 19:39:26 +02:00
|
|
|
#:use-module (gnu packages networking)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages protobuf)
|
|
|
|
#:use-module (gnu packages python)
|
gnu: Move crypto packages from python to python-crypto.
* gnu/packages/python.scm (python-passlib, python2-passlib)
(python-py-bcrypt, python2-py-bcrypt)
(python-paramiko, python2-paramiko, python-ecdsa, python2-ecdsa)
(python-pycrypto, python2-pycrypto, python-keyring, python2-keyring)
(python-certifi, python2-certifi)
(python-cryptography-vectors, python2-cryptography-vectors)
(python-cryptography, python2-cryptography)
(python-pyopenssl, python2-pyopenssl)
(python-axolotl-curve25519, python2-axolotl-curve25519)
(python-axolotl, python2-axolotl, python2-slowaes)
(python-pyaes, python2-pyaes): Move to...
* gnu/packages/python-crypto.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/admin.scm, gnu/packages/backup.scm,
gnu/packages/crypto.scm, gnu/packages/finance.scm,
gnu/packages/irc.scm, gnu/packages/jrnl.scm,
gnu/packages/messaging.scm, gnu/packages/openstack.scm,
gnu/packages/python-web.scm, gnu/packages/tls.scm,
gnu/packages/xorg.scm: Adjust accordingly.
2017-11-15 14:10:30 +01:00
|
|
|
#:use-module (gnu packages python-crypto)
|
gnu: Move more packages from python to python-web.
* gnu/packages/python.scm (python-requests, python2-requests)
(python-requests-2.7, python-oauthlib, python2-oauthlib)
(python-furl, python2-furl, python-wsgi-intercept)
(python-publicsuffix, python2-publicsuffix)
(python-publicsuffix2, python2-publicsuffix2): Move to...
* gnu/packages/python-web.scm: ... here.
* gnu/packages/bioinformatics.scm, gnu/packages/finance.scm:
gnu/packages/maths.scm, gnu/packages/terminals.scm,
gnu/packages/video.scm, gnu/packages/virtualization.scm: Adjust
accordingly.
2017-11-15 14:59:31 +01:00
|
|
|
#:use-module (gnu packages python-web)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 14:21:30 +01:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages qt)
|
2017-11-30 12:12:04 +01:00
|
|
|
#:use-module (gnu packages readline)
|
gnu: Move Sphinx and friends to (gnu packages sphinx).
* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport,
python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx,
python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme,
python2-sphinx-rtd-theme, python-guzzle-sphinx-theme,
python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed,
python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput,
python-sphinx-repoze-interface, python2-sphinx-repoze-interface,
python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme,
python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme,
python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ...
(gnu):
* gnu/packages/sphinx.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
* gnu/packages/admin.scm, gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm, gnu/packages/cluster.scm,
gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm,
gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm,
gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm,
gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm,
gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm,
gnu/packages/search.scm, gnu/packages/statistics.scm,
gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm,
gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports.
2019-05-12 22:56:54 +02:00
|
|
|
#:use-module (gnu packages sphinx)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages texinfo)
|
|
|
|
#:use-module (gnu packages textutils)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages upnp)
|
2019-06-17 10:44:35 +02:00
|
|
|
#:use-module (gnu packages version-control)
|
2017-09-29 08:01:34 +02:00
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (gnu packages gnuzilla))
|
2015-09-17 21:07:22 +02:00
|
|
|
|
|
|
|
(define-public bitcoin-core
|
|
|
|
(package
|
|
|
|
(name "bitcoin-core")
|
2019-01-21 21:04:14 +01:00
|
|
|
(version "0.17.1")
|
2015-09-17 21:07:22 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2019-01-21 21:04:14 +01:00
|
|
|
(string-append "https://bitcoincore.org/bin/bitcoin-core-"
|
2016-06-16 08:52:18 +02:00
|
|
|
version "/bitcoin-" version ".tar.gz"))
|
2015-09-17 21:07:22 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-01-21 21:04:14 +01:00
|
|
|
"0am4pnaf2cisv172jqx6jdpzx770agm8777163lkjbw3ryslymiy"))))
|
2015-09-17 21:07:22 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2016-09-05 09:47:15 +02:00
|
|
|
("python" ,python) ; for the tests
|
2017-09-22 19:00:08 +02:00
|
|
|
("util-linux" ,util-linux) ; provides the hexdump command for tests
|
|
|
|
("qttools" ,qttools)))
|
2015-09-17 21:07:22 +02:00
|
|
|
(inputs
|
2016-07-23 20:18:44 +02:00
|
|
|
`(("bdb" ,bdb-5.3) ; with 6.2.23, there is an error: ambiguous overload
|
2015-09-17 21:07:22 +02:00
|
|
|
("boost" ,boost)
|
2016-06-16 08:52:18 +02:00
|
|
|
("libevent" ,libevent)
|
2015-09-17 21:07:22 +02:00
|
|
|
("miniupnpc" ,miniupnpc)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("protobuf" ,protobuf)
|
2017-09-22 19:00:08 +02:00
|
|
|
("qtbase" ,qtbase)))
|
2015-09-17 21:07:22 +02:00
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(list
|
|
|
|
;; We use a bdb version newer than 4.8.
|
|
|
|
"--with-incompatible-bdb"
|
|
|
|
;; Boost is not found unless specified manually.
|
|
|
|
(string-append "--with-boost="
|
2017-09-22 19:00:08 +02:00
|
|
|
(assoc-ref %build-inputs "boost"))
|
|
|
|
;; XXX: The configure script looks up Qt paths by
|
|
|
|
;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick
|
|
|
|
;; up executables residing in 'qttools', so we specify them here.
|
|
|
|
(string-append "ac_cv_path_LRELEASE="
|
|
|
|
(assoc-ref %build-inputs "qttools")
|
|
|
|
"/bin/lrelease")
|
|
|
|
(string-append "ac_cv_path_LUPDATE="
|
|
|
|
(assoc-ref %build-inputs "qttools")
|
|
|
|
"/bin/lupdate"))
|
2015-09-17 21:07:22 +02:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2019-01-21 20:51:57 +01:00
|
|
|
(add-before 'configure 'make-qt-deterministic
|
|
|
|
(lambda _
|
|
|
|
;; Make Qt deterministic.
|
|
|
|
(setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
|
|
|
|
#t))
|
2015-09-17 21:07:22 +02:00
|
|
|
(add-before 'check 'set-home
|
|
|
|
(lambda _
|
2019-01-22 12:59:55 +01:00
|
|
|
(setenv "HOME" (getenv "TMPDIR")) ; Tests write to $HOME.
|
|
|
|
#t)))))
|
2015-09-17 21:07:22 +02:00
|
|
|
(home-page "https://bitcoin.org/en/")
|
|
|
|
(synopsis "Bitcoin peer-to-peer client")
|
|
|
|
(description
|
|
|
|
"Bitcoin is a digital currency that enables instant payments to anyone
|
|
|
|
anywhere in the world. It uses peer-to-peer technology to operate without
|
|
|
|
central authority: managing transactions and issuing money are carried out
|
|
|
|
collectively by the network. Bitcoin Core is the reference implementation
|
|
|
|
of the bitcoin protocol. This package provides the Bitcoin Core command
|
|
|
|
line client and a client based on Qt.")
|
|
|
|
(license license:expat)))
|
2016-05-07 19:20:47 +02:00
|
|
|
|
|
|
|
(define-public ledger
|
|
|
|
(package
|
|
|
|
(name "ledger")
|
2019-04-05 05:48:19 +02:00
|
|
|
(version "3.1.3")
|
2018-12-24 04:32:49 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/ledger/ledger.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
2019-04-05 05:48:19 +02:00
|
|
|
(base32 "0bfnrqrd6wqgsngfpqi30xh6yy86pwl25iwzrqy44q31r0zl4mm3"))))
|
2016-05-07 19:20:47 +02:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2019-02-13 09:51:49 +01:00
|
|
|
`(#:configure-flags
|
2016-05-07 19:20:47 +02:00
|
|
|
`("-DBUILD_DOCS:BOOL=ON"
|
|
|
|
"-DBUILD_WEB_DOCS:BOOL=ON"
|
|
|
|
"-DUSE_PYTHON:BOOL=ON"
|
2019-02-13 09:51:49 +01:00
|
|
|
"-DCMAKE_INSTALL_LIBDIR:PATH=lib")
|
2016-05-07 19:20:47 +02:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'install-examples
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((examples (string-append (assoc-ref outputs "out")
|
|
|
|
"/share/doc/ledger/examples")))
|
|
|
|
(install-file "test/input/sample.dat" examples)
|
|
|
|
(install-file "test/input/demo.ledger" examples))
|
|
|
|
#t))
|
|
|
|
(add-after 'build 'build-doc
|
2018-07-04 14:43:31 +02:00
|
|
|
(lambda _ (invoke "make" "doc")))
|
2016-05-07 19:20:47 +02:00
|
|
|
(add-before 'check 'check-setup
|
|
|
|
;; One test fails if it can't set the timezone.
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(setenv "TZDIR"
|
|
|
|
(string-append (assoc-ref inputs "tzdata")
|
|
|
|
"/share/zoneinfo"))
|
2019-02-13 09:51:49 +01:00
|
|
|
;; Skip failing test BaselineTest_cmd-org.
|
|
|
|
;; This is a known upstream issue. See
|
|
|
|
;; https://github.com/ledger/ledger/issues/550
|
|
|
|
(setenv "ARGS" "-E BaselineTest_cmd-org")
|
|
|
|
#t)))))
|
2016-05-07 19:20:47 +02:00
|
|
|
(inputs
|
|
|
|
`(("boost" ,boost)
|
|
|
|
("gmp" ,gmp)
|
|
|
|
("libedit" ,libedit)
|
|
|
|
("mpfr" ,mpfr)
|
|
|
|
("python" ,python-2)
|
|
|
|
("tzdata" ,tzdata)
|
|
|
|
("utfcpp" ,utfcpp)))
|
|
|
|
(native-inputs
|
2019-02-13 09:51:49 +01:00
|
|
|
`(("groff" ,groff)
|
2016-05-07 19:20:47 +02:00
|
|
|
("texinfo" ,texinfo)))
|
2018-07-04 14:46:34 +02:00
|
|
|
(home-page "https://ledger-cli.org/")
|
2016-05-07 19:20:47 +02:00
|
|
|
(synopsis "Command-line double-entry accounting program")
|
|
|
|
(description
|
|
|
|
"Ledger is a powerful, double-entry accounting system that is
|
|
|
|
accessed from the UNIX command-line. This may put off some users, since
|
|
|
|
there is no flashy UI, but for those who want unparalleled reporting
|
|
|
|
access to their data there are few alternatives.
|
|
|
|
|
|
|
|
Ledger uses text files for input. It reads the files and generates
|
|
|
|
reports; there is no other database or stored state. To use Ledger,
|
|
|
|
you create a file of your account names and transactions, run from the
|
|
|
|
command line with some options to specify input and requested reports, and
|
|
|
|
get output. The output is generally plain text, though you could generate
|
|
|
|
a graph or html instead. Ledger is simple in concept, surprisingly rich
|
|
|
|
in ability, and easy to use.")
|
|
|
|
;; There are some extra licenses in files which do not presently get
|
|
|
|
;; installed when you build this package. Different versions of the GPL
|
|
|
|
;; are used in the contrib and python subdirectories. The bundled version
|
|
|
|
;; of utfcpp is under the Boost 1.0 license. Also the file
|
|
|
|
;; `tools/update_copyright_year` has an Expat license.
|
|
|
|
(license (list license:bsd-3
|
|
|
|
license:asl2.0 ; src/strptime.cc
|
|
|
|
(license:non-copyleft
|
|
|
|
"file://src/wcwidth.cc"
|
2019-02-13 09:51:49 +01:00
|
|
|
"See src/wcwidth.cc in the distribution.")))))
|
2016-10-17 10:39:21 +02:00
|
|
|
|
2019-02-13 10:52:43 +01:00
|
|
|
(define-public emacs-ledger-mode
|
|
|
|
;; There have been no new releases since 2016.
|
|
|
|
(let ((commit "253a20dc62e137ed0ed8e1dd8614ecba116610ea")
|
|
|
|
(revision "1"))
|
|
|
|
(package
|
|
|
|
(name "emacs-ledger-mode")
|
|
|
|
(version (git-version "3.1.1" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/ledger/ledger-mode.git")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "06wrgkqpgvk17vibrk2qikdlqn8y63jg86marp1wgmram92mb3jk"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build cmake-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(guix build emacs-utils))
|
|
|
|
#:imported-modules (,@%cmake-build-system-modules
|
|
|
|
(guix build emacs-utils))
|
|
|
|
#:tests? #f ; there are none
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2019-04-24 11:12:02 +02:00
|
|
|
(add-before 'build 'patch-path
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((ledger (assoc-ref inputs "ledger")))
|
|
|
|
(make-file-writable "ledger-exec.el")
|
|
|
|
(emacs-substitute-variables "ledger-exec.el"
|
|
|
|
("ledger-binary-path" (string-append ledger "/bin/ledger"))))
|
|
|
|
#t))
|
2019-02-13 10:52:43 +01:00
|
|
|
(add-after 'build 'build-doc
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((target (string-append (assoc-ref outputs "out")
|
|
|
|
"/share/info")))
|
|
|
|
(mkdir-p target)
|
|
|
|
(invoke "makeinfo" "-o" target
|
|
|
|
"../source/doc/ledger-mode.texi"))
|
|
|
|
#t))
|
|
|
|
(add-after 'install 'relocate-elisp
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((site-dir (string-append (assoc-ref outputs "out")
|
|
|
|
"/share/emacs/site-lisp"))
|
|
|
|
(guix-dir (string-append site-dir "/guix.d"))
|
|
|
|
(orig-dir (string-append site-dir "/ledger-mode"))
|
|
|
|
(dest-dir (string-append guix-dir "/ledger-mode")))
|
|
|
|
(mkdir-p guix-dir)
|
|
|
|
(rename-file orig-dir dest-dir)
|
|
|
|
(emacs-generate-autoloads ,name dest-dir)
|
|
|
|
#t))))))
|
2019-04-24 11:12:02 +02:00
|
|
|
(inputs
|
|
|
|
`(("ledger" ,ledger)))
|
2019-02-13 10:52:43 +01:00
|
|
|
(native-inputs
|
|
|
|
`(("emacs-minimal" ,emacs-minimal)
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
(home-page "https://ledger-cli.org/")
|
|
|
|
(synopsis "Command-line double-entry accounting program")
|
|
|
|
(description
|
|
|
|
"Ledger is a powerful, double-entry accounting system that is
|
|
|
|
accessed from the UNIX command-line. This may put off some users, since
|
|
|
|
there is no flashy UI, but for those who want unparalleled reporting
|
|
|
|
access to their data there are few alternatives.
|
|
|
|
|
|
|
|
Ledger uses text files for input. It reads the files and generates
|
|
|
|
reports; there is no other database or stored state. To use Ledger,
|
|
|
|
you create a file of your account names and transactions, run from the
|
|
|
|
command line with some options to specify input and requested reports, and
|
|
|
|
get output. The output is generally plain text, though you could generate
|
|
|
|
a graph or html instead. Ledger is simple in concept, surprisingly rich
|
|
|
|
in ability, and easy to use.
|
|
|
|
|
|
|
|
This package provides the Emacs mode.")
|
|
|
|
(license license:gpl2+))))
|
|
|
|
|
2016-10-17 10:39:21 +02:00
|
|
|
(define-public geierlein
|
|
|
|
(package
|
|
|
|
(name "geierlein")
|
2017-12-14 11:00:04 +01:00
|
|
|
(version "0.9.13")
|
2016-10-17 10:39:21 +02:00
|
|
|
(source
|
|
|
|
(origin
|
2018-12-24 04:40:20 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/stesie/geierlein.git")
|
|
|
|
(commit (string-append "V" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2016-10-17 10:39:21 +02:00
|
|
|
(sha256
|
2018-12-24 04:40:20 +01:00
|
|
|
(base32 "00zpwr3lk2vdmd60fgdwdk0xxs52wvnm19ln2m75yfphydvkglic"))))
|
2016-10-17 10:39:21 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2018-12-24 04:40:20 +01:00
|
|
|
`(#:tests? #f ; would require npm, python and a lot more
|
2016-10-17 10:39:21 +02:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2017-12-14 11:00:04 +01:00
|
|
|
(delete 'configure) ; no configure script
|
2016-10-17 10:39:21 +02:00
|
|
|
(add-after 'unpack 'override-target-directory-and-tool-paths
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(substitute* "Makefile"
|
|
|
|
(("prefix := .*")
|
|
|
|
(string-append "prefix := " (assoc-ref outputs "out") "\n"))
|
|
|
|
;; Required for tests, unused for now:
|
|
|
|
;;(("PYTHON := .*")
|
|
|
|
;; (string-append (which "python") "\n")))
|
|
|
|
(("INSTALL := .*")
|
|
|
|
(string-append "INSTALL := " (which "install") "\n")))
|
|
|
|
(substitute* "bin/xgeierlein.in"
|
|
|
|
;; Use icecat as XULRUNNER
|
|
|
|
(("^for search ")
|
|
|
|
(string-append "XULRUNNER=" (which "icecat") "\n"
|
|
|
|
"for search ")))
|
|
|
|
#t)))))
|
|
|
|
(inputs
|
|
|
|
`(("icecat" ,icecat)))
|
2018-01-09 16:34:56 +01:00
|
|
|
(home-page "https://stesie.github.io/geierlein/")
|
2016-10-17 10:39:21 +02:00
|
|
|
(synopsis "Free Elster client, for sending Germany VAT declarations")
|
|
|
|
(description
|
|
|
|
"Geierlein is a free Elster client, i.e. an application that
|
|
|
|
allows to send VAT declarations to Germany's fiscal authorities.
|
|
|
|
|
|
|
|
Currently it is *not* possible to send returns that are due annually
|
|
|
|
(especially the income tax return) since the fiscal authority doesn't
|
|
|
|
allow to do that off the ERiC library (which is proprietary however).
|
|
|
|
It's not clear at the moment whether one day it will be possible to
|
|
|
|
do so.")
|
|
|
|
(license license:agpl3+)))
|
2017-01-02 14:32:38 +01:00
|
|
|
|
|
|
|
(define-public electrum
|
|
|
|
(package
|
|
|
|
(name "electrum")
|
2019-06-06 23:59:09 +02:00
|
|
|
(version "3.3.6")
|
2017-01-02 14:32:38 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://download.electrum.org/"
|
|
|
|
version "/Electrum-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
2019-06-06 23:59:09 +02:00
|
|
|
(base32 "0am5ki3z0yvhrz16vp2jjy5fkxxqph0mj9qqpbw3kpql65shykwz"))
|
2017-01-02 14:32:38 +01:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Delete the bundled dependencies.
|
|
|
|
(delete-file-recursively "packages")
|
|
|
|
#t))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
2017-11-06 12:40:28 +01:00
|
|
|
`(("python-pyaes" ,python-pyaes)
|
|
|
|
("python-pysocks" ,python-pysocks)
|
|
|
|
("python-sip" ,python-sip)
|
|
|
|
("python-pyqt" ,python-pyqt)
|
|
|
|
("python-ecdsa" ,python-ecdsa)
|
|
|
|
("python-pbkdf2" ,python-pbkdf2)
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
("python-qrcode" ,python-qrcode)
|
|
|
|
("python-protobuf" ,python-protobuf)
|
2019-01-15 05:51:34 +01:00
|
|
|
("python-aiohttp" ,python-aiohttp)
|
|
|
|
("python-aiohttp-socks" ,python-aiohttp-socks)
|
|
|
|
("python-aiorpcx" ,python-aiorpcx)
|
|
|
|
("python-certifi" ,python-certifi)
|
2017-11-06 12:40:28 +01:00
|
|
|
("python-dnspython" ,python-dnspython)
|
|
|
|
("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
|
2017-01-02 14:32:38 +01:00
|
|
|
(arguments
|
2017-11-06 12:40:28 +01:00
|
|
|
`(#:tests? #f ;; package doesn't have any tests
|
2017-01-02 14:32:38 +01:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'patch-home
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(substitute* "setup.py"
|
|
|
|
(("~/.local/share")
|
|
|
|
(string-append (assoc-ref outputs "out") "/local/share"))))))))
|
|
|
|
(home-page "https://electrum.org/")
|
|
|
|
(synopsis "Bitcoin wallet")
|
|
|
|
(description
|
|
|
|
"Electrum is a lightweight Bitcoin client, based on a client-server
|
|
|
|
protocol. It supports Simple Payment Verification (SPV) and deterministic key
|
|
|
|
generation from a seed. Your secret keys are encrypted and are never sent to
|
|
|
|
other machines/servers. Electrum does not download the Bitcoin blockchain.")
|
|
|
|
(license license:expat)))
|
2017-09-09 19:47:34 +02:00
|
|
|
|
2018-07-14 00:39:16 +02:00
|
|
|
(define-public electron-cash
|
|
|
|
(package
|
|
|
|
(inherit electrum)
|
|
|
|
(name "electron-cash")
|
2019-06-20 09:16:01 +02:00
|
|
|
(version "4.0.7")
|
2018-07-14 00:39:16 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://electroncash.org/downloads/"
|
|
|
|
version
|
2019-02-10 05:43:53 +01:00
|
|
|
"/win-linux/Electron-Cash-"
|
2018-07-14 00:39:16 +02:00
|
|
|
version
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-20 09:16:01 +02:00
|
|
|
"0xswmr68cm1c77lzisi3z812jzqczm9dfrshfhdq42zz5kaz4gnn"))
|
2018-07-14 00:39:16 +02:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Delete the bundled dependencies.
|
|
|
|
(delete-file-recursively "packages")
|
|
|
|
#t))))
|
|
|
|
(home-page "https://electroncash.org/")
|
|
|
|
(synopsis "Bitcoin Cash wallet")
|
|
|
|
(description
|
|
|
|
"Electroncash is a lightweight Bitcoin Cash client, based on a client-server
|
|
|
|
protocol. It supports Simple Payment Verification (SPV) and deterministic key
|
|
|
|
generation from a seed. Your secret keys are encrypted and are never sent to
|
|
|
|
other machines/servers. Electroncash does not download the Bitcoin Cash blockchain.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2017-09-09 19:47:34 +02:00
|
|
|
(define-public monero
|
|
|
|
;; This package bundles easylogging++ and lmdb.
|
2019-06-17 10:44:35 +02:00
|
|
|
;; The bundled easylogging++ is modified, and the changes will not be
|
|
|
|
;; upstreamed.
|
2017-09-09 19:47:34 +02:00
|
|
|
;; The devs deem the lmdb driver too critical a consenus component, to use
|
|
|
|
;; the system's dynamically linked library.
|
|
|
|
(package
|
|
|
|
(name "monero")
|
2019-06-17 10:44:35 +02:00
|
|
|
(version "0.14.1.0")
|
2017-09-09 19:47:34 +02:00
|
|
|
(source
|
|
|
|
(origin
|
2018-07-08 19:39:26 +02:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2019-06-17 10:44:35 +02:00
|
|
|
(url "https://github.com/monero-project/monero.git")
|
|
|
|
(commit (string-append "v" version))
|
|
|
|
(recursive? #t)))
|
2018-07-29 15:03:59 +02:00
|
|
|
(file-name (git-file-name name version))
|
2018-07-08 19:39:26 +02:00
|
|
|
(patches (search-patches "monero-use-system-miniupnpc.patch"))
|
2019-06-17 10:44:35 +02:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Delete bundled dependencies.
|
|
|
|
(for-each
|
|
|
|
delete-file-recursively
|
|
|
|
'("external/miniupnp" "external/rapidjson"
|
|
|
|
"external/unbound"))
|
|
|
|
#t))
|
2017-09-09 19:47:34 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-17 10:44:35 +02:00
|
|
|
"1asa197fad81jfv12qgaa7y7pdr1r1pda96m9pvivkh4v30cx0nh"))))
|
2017-09-09 19:47:34 +02:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("doxygen" ,doxygen)
|
2019-06-17 10:44:35 +02:00
|
|
|
("git" ,git)
|
2017-09-09 19:47:34 +02:00
|
|
|
("graphviz" ,graphviz)
|
2019-06-17 10:44:35 +02:00
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("qttools" ,qttools)))
|
2017-09-09 19:47:34 +02:00
|
|
|
(inputs
|
2019-06-17 10:44:35 +02:00
|
|
|
`(("boost" ,boost)
|
2018-07-08 19:39:26 +02:00
|
|
|
("cppzmq" ,cppzmq)
|
2017-09-09 19:47:34 +02:00
|
|
|
("expat" ,expat)
|
2019-06-17 10:44:35 +02:00
|
|
|
("hidapi" ,hidapi)
|
2017-09-09 19:47:34 +02:00
|
|
|
("libunwind" ,libunwind)
|
2019-06-17 10:44:35 +02:00
|
|
|
("libsodium" ,libsodium)
|
|
|
|
("miniupnpc" ,miniupnpc)
|
2017-09-09 19:47:34 +02:00
|
|
|
("openssl" ,openssl)
|
|
|
|
("rapidjson" ,rapidjson)
|
2019-06-17 10:44:35 +02:00
|
|
|
("readline" ,readline)
|
|
|
|
("unbound" ,unbound)
|
|
|
|
("xz" ,xz)
|
|
|
|
("zeromq" ,zeromq)))
|
2017-09-09 19:47:34 +02:00
|
|
|
(arguments
|
|
|
|
`(#:out-of-source? #t
|
2019-06-17 10:44:35 +02:00
|
|
|
#:configure-flags '("-DARCH=default"
|
|
|
|
"-DBUILD_TESTS=ON"
|
2017-09-09 19:47:34 +02:00
|
|
|
"-DBUILD_GUI_DEPS=ON")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; tests/core_tests need a valid HOME
|
|
|
|
(add-before 'configure 'set-home
|
|
|
|
(lambda _
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
#t))
|
2019-06-17 10:44:35 +02:00
|
|
|
(add-after 'set-home 'change-log-path
|
2017-09-09 19:47:34 +02:00
|
|
|
(lambda _
|
|
|
|
(substitute* "contrib/epee/src/mlog.cpp"
|
|
|
|
(("epee::string_tools::get_current_module_folder\\(\\)")
|
2019-06-17 10:44:35 +02:00
|
|
|
"\".bitmonero\"")
|
|
|
|
(("return \\(")
|
|
|
|
"return ((std::string(getenv(\"HOME\"))) / "))
|
2017-09-09 19:47:34 +02:00
|
|
|
#t))
|
2019-06-17 10:44:35 +02:00
|
|
|
;; Only try tests that don't need access to network or system
|
2017-09-09 19:47:34 +02:00
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
2019-07-14 17:37:19 +02:00
|
|
|
(invoke "make" "ARGS=-R 'hash|core_tests' --verbose" "test")))
|
2017-09-09 19:47:34 +02:00
|
|
|
(add-after 'check 'unit-tests
|
|
|
|
(lambda _
|
|
|
|
(let ((excluded-unit-tests
|
|
|
|
(string-join
|
|
|
|
'("AddressFromURL.Success"
|
|
|
|
"AddressFromURL.Failure"
|
|
|
|
"DNSResolver.IPv4Success"
|
|
|
|
"DNSResolver.DNSSECSuccess"
|
|
|
|
"DNSResolver.DNSSECFailure"
|
2019-06-17 10:44:35 +02:00
|
|
|
"DNSResolver.GetTXTRecord"
|
|
|
|
;; TODO: Find why portability_wallet test fails
|
|
|
|
;; Maybe the Boost version used to create the test
|
|
|
|
;; wallet and the current Boost version are not
|
|
|
|
;; completely compatible?
|
|
|
|
"Serialization.portability_wallet"
|
|
|
|
"is_hdd.linux_os_root")
|
2017-09-09 19:47:34 +02:00
|
|
|
":")))
|
2018-07-08 19:39:27 +02:00
|
|
|
(invoke "tests/unit_tests/unit_tests"
|
|
|
|
(string-append "--gtest_filter=-"
|
2019-06-17 10:44:35 +02:00
|
|
|
excluded-unit-tests))))))))
|
2017-09-09 19:47:34 +02:00
|
|
|
(home-page "https://getmonero.org/")
|
|
|
|
(synopsis "Command-line interface to the Monero currency")
|
|
|
|
(description
|
2019-06-17 10:44:35 +02:00
|
|
|
"Monero is a secure, private, untraceable currency. This package provides
|
|
|
|
the Monero command line client and daemon.")
|
2017-09-09 19:47:34 +02:00
|
|
|
(license license:bsd-3)))
|
2017-09-09 19:47:35 +02:00
|
|
|
|
2018-07-08 19:39:32 +02:00
|
|
|
(define-public monero-gui
|
2017-09-09 19:47:35 +02:00
|
|
|
(package
|
2018-07-08 19:39:32 +02:00
|
|
|
(name "monero-gui")
|
2019-06-15 10:33:41 +02:00
|
|
|
(version "0.14.1.0")
|
2017-09-09 19:47:35 +02:00
|
|
|
(source
|
|
|
|
(origin
|
2018-07-08 19:39:28 +02:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2019-06-15 10:33:41 +02:00
|
|
|
(url "https://github.com/monero-project/monero-gui.git")
|
2018-07-08 19:39:28 +02:00
|
|
|
(commit (string-append "v" version))))
|
2018-07-29 15:05:53 +02:00
|
|
|
(file-name (git-file-name name version))
|
2017-09-09 19:47:35 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-15 10:33:41 +02:00
|
|
|
"0ilx47771faygf97wilm64xnqxgxa3b43q0g9v014npk0qj8pc31"))))
|
2017-09-09 19:47:35 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2019-06-15 10:33:41 +02:00
|
|
|
`(("pkg-config" ,pkg-config)
|
2018-07-30 08:43:15 +02:00
|
|
|
("qttools" ,qttools)))
|
2017-09-09 19:47:35 +02:00
|
|
|
(inputs
|
|
|
|
`(("boost" ,boost)
|
2019-06-15 10:33:41 +02:00
|
|
|
("hidapi" ,hidapi)
|
2017-09-09 19:47:35 +02:00
|
|
|
("libunwind" ,libunwind)
|
2019-06-15 10:33:41 +02:00
|
|
|
("libsodium" ,libsodium)
|
2017-09-09 19:47:35 +02:00
|
|
|
("openssl" ,openssl)
|
2018-07-30 08:43:15 +02:00
|
|
|
("qtbase" ,qtbase)
|
|
|
|
("qtdeclarative" ,qtdeclarative)
|
|
|
|
("qtgraphicaleffects" ,qtgraphicaleffects)
|
2019-06-15 10:33:41 +02:00
|
|
|
("qtlocation" ,qtlocation)
|
|
|
|
("qtmultimedia" ,qtmultimedia)
|
2018-07-30 08:43:15 +02:00
|
|
|
("qtquickcontrols" ,qtquickcontrols)
|
2019-06-15 10:33:41 +02:00
|
|
|
("qtquickcontrols2",qtquickcontrols2)
|
|
|
|
("qtsvg" ,qtsvg)
|
|
|
|
("qtwebchannel" ,qtwebchannel)
|
|
|
|
("qtx11extras" ,qtx11extras)
|
|
|
|
("qtxmlpatterns" ,qtxmlpatterns)
|
2017-09-09 19:47:35 +02:00
|
|
|
("unbound" ,unbound)))
|
|
|
|
(propagated-inputs
|
|
|
|
`(("monero" ,monero)))
|
|
|
|
(arguments
|
2019-06-15 10:33:41 +02:00
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
(guix build qt-utils)
|
|
|
|
(guix build utils))
|
|
|
|
#:imported-modules (,@%gnu-build-system-modules
|
|
|
|
(guix build qt-utils))
|
|
|
|
#:phases
|
2017-09-09 19:47:35 +02:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(delete 'check)
|
|
|
|
(add-before 'build 'fix-makefile-vars
|
|
|
|
(lambda _
|
|
|
|
(substitute* "src/zxcvbn-c/makefile"
|
|
|
|
(("\\?=") "="))
|
|
|
|
#t))
|
|
|
|
(add-after 'fix-makefile-vars 'fix-library-paths
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* "monero-wallet-gui.pro"
|
2019-06-15 10:33:41 +02:00
|
|
|
(("-L/usr/local/lib")
|
|
|
|
"")
|
2017-09-09 19:47:35 +02:00
|
|
|
(("-L/usr/local/opt/openssl/lib")
|
2019-06-15 10:33:41 +02:00
|
|
|
(string-append "-L" (assoc-ref inputs "openssl") "/lib"))
|
2017-09-09 19:47:35 +02:00
|
|
|
(("-L/usr/local/opt/boost/lib")
|
2019-06-15 10:33:41 +02:00
|
|
|
(string-append "-L" (assoc-ref inputs "boost") "/lib")))
|
2017-09-09 19:47:35 +02:00
|
|
|
#t))
|
|
|
|
(add-after 'fix-library-paths 'fix-monerod-path
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* "src/daemon/DaemonManager.cpp"
|
|
|
|
(("QApplication::applicationDirPath\\(\\) \\+ \"/monerod")
|
2019-06-15 10:33:41 +02:00
|
|
|
(string-append "\"" (assoc-ref inputs "monero")
|
2017-09-09 19:47:35 +02:00
|
|
|
"/bin/monerod")))
|
|
|
|
#t))
|
2018-07-30 08:43:15 +02:00
|
|
|
(add-after 'fix-monerod-path 'fix-qt-paths
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2019-06-15 10:33:41 +02:00
|
|
|
(substitute* "monero-wallet-gui.pro"
|
|
|
|
(("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
|
|
|
|
(string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
|
|
|
|
(("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate")
|
|
|
|
(string-append (assoc-ref inputs "qttools") "/bin/lupdate")))
|
|
|
|
#t))
|
|
|
|
(add-after 'fix-qt-paths 'make-qt-deterministic
|
|
|
|
(lambda _
|
|
|
|
(setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
|
|
|
|
#t))
|
|
|
|
(add-after 'make-qt-deterministic 'fix-version
|
|
|
|
(lambda _
|
|
|
|
(substitute* "build.sh"
|
|
|
|
(("echo .*> version.js")
|
|
|
|
""))
|
|
|
|
(with-output-to-file "version.js"
|
|
|
|
(lambda _
|
|
|
|
(format #t
|
|
|
|
"var GUI_VERSION = \"~a\"~@
|
|
|
|
var GUI_MONERO_VERSION = \"~a\"~%"
|
|
|
|
,version
|
|
|
|
,(package-version monero))))
|
|
|
|
#t))
|
2017-09-09 19:47:35 +02:00
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
2018-07-08 19:39:29 +02:00
|
|
|
(invoke "./build.sh")))
|
2017-09-09 19:47:35 +02:00
|
|
|
(add-after 'build 'fix-install-path
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(substitute* "build/Makefile"
|
|
|
|
(("/opt/monero-wallet-gui")
|
|
|
|
(assoc-ref outputs "out")))
|
|
|
|
#t))
|
|
|
|
(add-before 'install 'change-dir
|
|
|
|
(lambda _
|
2019-06-15 10:33:41 +02:00
|
|
|
(chdir "build")
|
|
|
|
#t))
|
|
|
|
(add-after 'install 'wrap-program
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2018-07-30 08:43:15 +02:00
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2019-06-15 10:33:41 +02:00
|
|
|
(wrap-qt-program out "monero-wallet-gui"))
|
|
|
|
#t)))))
|
2017-09-09 19:47:35 +02:00
|
|
|
(home-page "https://getmonero.org/")
|
|
|
|
(synopsis "Graphical user interface for the Monero currency")
|
|
|
|
(description
|
2019-06-15 10:33:41 +02:00
|
|
|
"Monero is a secure, private, untraceable currency. This package provides
|
|
|
|
the Monero GUI client.")
|
2017-09-09 19:47:35 +02:00
|
|
|
(license license:bsd-3)))
|
2017-12-26 01:04:40 +01:00
|
|
|
|
2018-07-08 19:39:32 +02:00
|
|
|
(define-public monero-core
|
|
|
|
(deprecated-package "monero-core" monero-gui))
|
|
|
|
|
2017-12-26 01:04:40 +01:00
|
|
|
(define-public python-trezor-agent
|
|
|
|
(package
|
|
|
|
(name "python-trezor-agent")
|
2019-04-08 22:55:42 +02:00
|
|
|
(version "0.13.1")
|
2017-12-26 01:04:40 +01:00
|
|
|
(source
|
|
|
|
(origin
|
2018-12-24 04:51:39 +01:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/romanz/trezor-agent.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2017-12-26 01:04:40 +01:00
|
|
|
(sha256
|
2019-04-08 22:55:42 +02:00
|
|
|
(base32 "0q99vbfd3h85s8rnjipnmldixabqmmlk5w9karv6f0rhyi54f4zv"))))
|
2017-12-26 01:04:40 +01:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
2019-02-07 01:07:15 +01:00
|
|
|
(add-after 'unpack 'remove-requires-backports-shutil-which
|
|
|
|
;; Remove requires on backport of shutil_which, as python 3.4+ has
|
|
|
|
;; a built-in implementation supported in python-trezor-agent.
|
|
|
|
(lambda _
|
|
|
|
(substitute* "setup.py"
|
|
|
|
(("'backports.shutil_which>=3.5.1',") ""))
|
|
|
|
#t))
|
2017-12-26 01:04:40 +01:00
|
|
|
(delete 'check)
|
|
|
|
(add-after 'install 'check
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
2018-12-24 04:51:39 +01:00
|
|
|
;; Make installed package available for running the tests.
|
2017-12-26 01:04:40 +01:00
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
(invoke "py.test"))))))
|
|
|
|
(propagated-inputs
|
2019-02-07 01:07:15 +01:00
|
|
|
`(("python-configargparse" ,python-configargparse)
|
|
|
|
("python-daemon" ,python-daemon)
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
("python-ecdsa" ,python-ecdsa)
|
2017-12-26 01:04:40 +01:00
|
|
|
("python-ed25519" ,python-ed25519)
|
2019-02-07 01:07:15 +01:00
|
|
|
("python-mnemonic" ,python-mnemonic)
|
|
|
|
("python-pymsgbox" ,python-pymsgbox)
|
2017-12-26 01:04:40 +01:00
|
|
|
("python-semver" ,python-semver)
|
2019-02-07 01:07:15 +01:00
|
|
|
("python-unidecode" ,python-unidecode)
|
|
|
|
("python-wheel" ,python-wheel)))
|
2017-12-26 01:04:40 +01:00
|
|
|
(native-inputs
|
2019-02-07 01:07:15 +01:00
|
|
|
`(("gnupg" ,gnupg)
|
|
|
|
("python-mock" ,python-mock)
|
2017-12-26 01:04:40 +01:00
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
(home-page "https://github.com/romanz/trezor-agent")
|
2019-02-07 01:07:15 +01:00
|
|
|
(synopsis "Use hardware wallets as SSH and GPG agent")
|
2017-12-26 01:04:40 +01:00
|
|
|
(description
|
|
|
|
"@code{libagent} is a library that allows using TREZOR, Keepkey and
|
|
|
|
Ledger Nano as a hardware SSH/GPG agent.")
|
|
|
|
(license license:lgpl3)))
|
|
|
|
|
2017-12-26 01:13:48 +01:00
|
|
|
(define-public python-mnemonic
|
|
|
|
(package
|
|
|
|
(name "python-mnemonic")
|
|
|
|
(version "0.18")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "mnemonic" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"07bzfa5di6nv5xwwcwbypnflpj50wlfczhh6q6hg8w13g5m319q2"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
|
|
|
`(("python-pbkdf2" ,python-pbkdf2)))
|
|
|
|
(home-page "https://github.com/trezor/python-mnemonic")
|
|
|
|
(synopsis "Implementation of Bitcoin BIP-0039")
|
|
|
|
(description "@code{mnemonic} is a library that provides an implementation
|
|
|
|
of Bitcoin BIP-0039.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
(define-public python2-mnemonic
|
|
|
|
(package-with-python2 python-mnemonic))
|
2017-12-28 08:37:20 +01:00
|
|
|
|
|
|
|
(define-public python-ledgerblue
|
|
|
|
(package
|
|
|
|
(name "python-ledgerblue")
|
|
|
|
(version "0.1.16")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "ledgerblue" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"010mghaqh1cmz3a0ifc3f40mmyplilwlw7kpha2mzyrrff46p9gb"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
|
|
|
`(("python-ecpy" ,python-ecpy)
|
|
|
|
("python-future" ,python-future)
|
|
|
|
("python-hidapi" ,python-hidapi)
|
|
|
|
("python-pillow" ,python-pillow)
|
|
|
|
("python-protobuf" ,python-protobuf)
|
|
|
|
("python-pycrypto" ,python-pycrypto)))
|
|
|
|
(home-page "https://github.com/LedgerHQ/blue-loader-python")
|
|
|
|
(synopsis "Python library to communicate with Ledger Blue/Nano S")
|
|
|
|
(description "@code{ledgerblue} is a Python library to communicate with
|
|
|
|
Ledger Blue/Nano S.")
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
(define-public python2-ledgerblue
|
|
|
|
(package-with-python2 python-ledgerblue))
|
|
|
|
|
2017-12-28 09:34:20 +01:00
|
|
|
(define-public python-trezor
|
|
|
|
(package
|
|
|
|
(name "python-trezor")
|
2019-06-07 00:17:03 +02:00
|
|
|
(version "0.11.3")
|
2017-12-28 09:34:20 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "trezor" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-06-07 00:17:03 +02:00
|
|
|
"0211m027vlvyqy83kwbjjjxalb04xgf1klv0h0y0f0yhj07516n7"))))
|
2017-12-28 09:34:20 +01:00
|
|
|
(build-system python-build-system)
|
2018-08-28 23:50:39 +02:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; Default tests run device-specific tests which fail, only run specific tests.
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2019-02-05 05:14:23 +01:00
|
|
|
;; Delete tests that require network access.
|
|
|
|
(delete-file "trezorlib/tests/unit_tests/test_tx_api.py")
|
|
|
|
(invoke "python" "-m" "pytest" "--pyarg" "trezorlib.tests.unit_tests"))))))
|
2017-12-28 09:34:20 +01:00
|
|
|
(propagated-inputs
|
2018-08-28 23:50:39 +02:00
|
|
|
`(("python-click" ,python-click)
|
2019-02-05 05:14:23 +01:00
|
|
|
("python-construct" ,python-construct)
|
2018-08-28 23:50:39 +02:00
|
|
|
("python-ecdsa" ,python-ecdsa)
|
|
|
|
("python-libusb1" ,python-libusb1)
|
2017-12-28 09:34:20 +01:00
|
|
|
("python-mnemonic" ,python-mnemonic)
|
2018-08-28 23:50:39 +02:00
|
|
|
("python-pyblake2" ,python-pyblake2)
|
|
|
|
("python-requests" ,python-requests)
|
2019-02-05 05:14:23 +01:00
|
|
|
("python-typing-extensions" ,python-typing-extensions)))
|
2017-12-28 09:34:20 +01:00
|
|
|
(native-inputs
|
2019-06-07 00:17:03 +02:00
|
|
|
;; For tests.
|
|
|
|
`(("protobuf" ,protobuf)
|
|
|
|
("python-black" ,python-black)
|
|
|
|
("python-protobuf" ,python-protobuf)
|
|
|
|
("python-isort" ,python-isort)
|
|
|
|
("python-pyqt" ,python-pyqt)
|
|
|
|
("python-pytest" ,python-pytest)))
|
2017-12-28 09:34:20 +01:00
|
|
|
(home-page "https://github.com/trezor/python-trezor")
|
|
|
|
(synopsis "Python library for communicating with TREZOR Hardware Wallet")
|
|
|
|
(description "@code{trezor} is a Python library for communicating with
|
|
|
|
TREZOR Hardware Wallet.")
|
|
|
|
(license license:lgpl3)))
|
|
|
|
|
2017-12-28 22:15:34 +01:00
|
|
|
(define-public python-keepkey
|
|
|
|
(package
|
|
|
|
(name "python-keepkey")
|
2019-04-08 22:50:23 +02:00
|
|
|
(version "6.0.3")
|
2017-12-28 22:15:34 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "keepkey" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-04-08 22:50:23 +02:00
|
|
|
"0z3d0m6364v9dv0njs4cd5m5ai6j6v35xaaxfxl90m9vmyxy81vd"))))
|
2017-12-28 22:15:34 +01:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'check)
|
|
|
|
(add-after 'install 'check
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
(apply invoke "python" (find-files "tests/unit" "\\.py$")))))))
|
|
|
|
(propagated-inputs
|
|
|
|
`(("python-ecdsa" ,python-ecdsa)
|
|
|
|
("python-hidapi" ,python-hidapi)
|
2019-02-08 05:35:20 +01:00
|
|
|
("python-libusb1" ,python-libusb1)
|
2017-12-28 22:15:34 +01:00
|
|
|
("python-mnemonic" ,python-mnemonic)
|
|
|
|
("python-protobuf" ,python-protobuf)))
|
|
|
|
(home-page "https://github.com/keepkey/python-keepkey")
|
|
|
|
(synopsis "Python library for communicating with KeepKey Hardware Wallet")
|
|
|
|
(description "@code{keepkey} is a Python library for communicating with
|
|
|
|
the KeepKey Hardware Wallet.")
|
|
|
|
(license license:lgpl3)))
|
|
|
|
|
|
|
|
(define-public python2-keepkey
|
|
|
|
(package-with-python2 python-keepkey))
|
|
|
|
|
2017-12-28 10:10:59 +01:00
|
|
|
(define-public ledger-agent
|
|
|
|
(package
|
|
|
|
(name "ledger-agent")
|
|
|
|
(version "0.9.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "ledger_agent" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("python-ledgerblue" ,python-ledgerblue)
|
|
|
|
("python-trezor-agent" ,python-trezor-agent)))
|
|
|
|
(home-page "http://github.com/romanz/trezor-agent")
|
|
|
|
(synopsis "Ledger as hardware SSH/GPG agent")
|
|
|
|
(description "This package allows using Ledger as hardware SSH/GPG agent.
|
|
|
|
|
2017-12-28 21:15:54 +01:00
|
|
|
Usage for SSH: trezor-agent foo@@example.com --connect
|
|
|
|
Usage for GPG: Initialize using trezor-gpg init \"Foo <foo@@example.com>\"
|
2017-12-28 10:10:59 +01:00
|
|
|
Then set the environment variable GNUPGHOME to
|
|
|
|
\"${HOME}/.gnupg/trezor\".")
|
|
|
|
(license license:lgpl3)))
|
2017-12-28 10:12:53 +01:00
|
|
|
|
|
|
|
(define-public trezor-agent
|
|
|
|
(package
|
|
|
|
(name "trezor-agent")
|
2019-02-07 01:07:49 +01:00
|
|
|
(version "0.10.0")
|
2017-12-28 10:12:53 +01:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "trezor_agent" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-02-07 01:07:49 +01:00
|
|
|
"144657c7bn0a667dq5fv5r6j7iilxf3h9agj29v1m2qpq40g0az8"))))
|
|
|
|
(arguments
|
|
|
|
;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'wrap 'fixup-agent-py
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out")))
|
|
|
|
;; overwrite the wrapper with the real thing.
|
|
|
|
(install-file "./trezor_agent.py"
|
|
|
|
(string-append out "/bin"))
|
|
|
|
#t))))))
|
2017-12-28 10:12:53 +01:00
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("python-trezor" ,python-trezor)
|
|
|
|
("python-trezor-agent" ,python-trezor-agent)))
|
2019-02-07 01:07:49 +01:00
|
|
|
(native-inputs
|
|
|
|
`(("python-hidapi" ,python-hidapi)))
|
|
|
|
(home-page "https://github.com/romanz/trezor-agent")
|
2017-12-28 10:12:53 +01:00
|
|
|
(synopsis "Using Trezor as hardware SSH/GPG agent")
|
|
|
|
(description "This package allows using Trezor as a hardware SSH/GPG
|
|
|
|
agent.")
|
|
|
|
(license license:lgpl3)))
|
2017-12-28 22:28:13 +01:00
|
|
|
|
|
|
|
(define-public keepkey-agent
|
|
|
|
(package
|
|
|
|
(name "keepkey-agent")
|
|
|
|
(version "0.9.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "keepkey_agent" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"03779gvlx70i0nnry98i4pl1d92604ix5x6jgdfkrdgzqbh5vj27"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("python-keepkey" ,python-keepkey)
|
|
|
|
("python-trezor-agent" ,python-trezor-agent)))
|
|
|
|
(home-page "http://github.com/romanz/trezor-agent")
|
|
|
|
(synopsis "KeepKey as hardware SSH/GPG agent")
|
|
|
|
(description "This package allows using KeepKey as a hardware SSH/GPG
|
|
|
|
agent.")
|
|
|
|
(license license:lgpl3)))
|
2018-01-22 19:24:20 +01:00
|
|
|
|
|
|
|
(define-public python-stdnum
|
|
|
|
(package
|
|
|
|
(name "python-stdnum")
|
|
|
|
(version "1.8.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "python-stdnum" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0hvr47q32xbyiznpmbg4r8rcvxhnf0lwf33hcpnynyik57djy5np"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(home-page
|
|
|
|
"https://arthurdejong.org/python-stdnum/")
|
|
|
|
(synopsis
|
|
|
|
"Python module to handle standardized number and code formats")
|
|
|
|
(description
|
|
|
|
"This is a Python library that aims to provide functions to handle,
|
|
|
|
parse and validate standard numbers.
|
|
|
|
The module supports more than 100 different number formats
|
|
|
|
amongst which a great number of VAT and other tax numbers,
|
|
|
|
personal identity and company identification codes,
|
|
|
|
international standard numbers (ISBN, IBAN, EAN, etc.)
|
|
|
|
and various other formats.
|
|
|
|
The module also inclused implementations of the Verhoeff,
|
|
|
|
Luhn and family of ISO/IEC 7064 check digit algorithms. ")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
|
|
(define-public python2-stdnum
|
|
|
|
(package-with-python2 python-stdnum))
|
2018-05-16 15:52:51 +02:00
|
|
|
|
2018-07-02 23:27:07 +02:00
|
|
|
(define-public python-duniterpy
|
|
|
|
(package
|
|
|
|
(name "python-duniterpy")
|
2019-08-01 22:24:34 +02:00
|
|
|
(version "0.55.1")
|
2018-07-02 23:27:07 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
;; Pypi's default URI is missing "requirements.txt" file.
|
|
|
|
(uri (git-reference
|
2018-08-09 23:34:07 +02:00
|
|
|
(url "https://git.duniter.org/clients/python/duniterpy.git")
|
2018-07-02 23:27:07 +02:00
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-08-01 22:24:34 +02:00
|
|
|
"07zsbbkzmnvyv5v0vw2d42vw3ar4iqhlidy9376ysk4ldlj1igf7"))))
|
2018-07-02 23:27:07 +02:00
|
|
|
(build-system python-build-system)
|
2018-12-02 01:11:49 +01:00
|
|
|
(arguments
|
|
|
|
;; Tests fail with "AttributeError: module 'attr' has no attribute 's'".
|
2018-12-19 23:49:15 +01:00
|
|
|
`(#:tests? #f
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'build 'build-documentation
|
|
|
|
(lambda _
|
|
|
|
(invoke "make" "docs")))
|
|
|
|
(add-after 'build-documentation 'install-documentation
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(doc (string-append out "/share/doc/" ,name)))
|
|
|
|
(mkdir-p doc)
|
|
|
|
(copy-recursively "docs/_build/html" doc))
|
|
|
|
#t)))))
|
|
|
|
(native-inputs
|
2019-02-02 11:29:50 +01:00
|
|
|
`(("sphinx" ,python-sphinx)
|
|
|
|
("sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
|
2018-07-02 23:27:07 +02:00
|
|
|
(propagated-inputs
|
2019-02-02 11:29:50 +01:00
|
|
|
`(("aiohttp" ,python-aiohttp)
|
|
|
|
("attr" ,python-attr)
|
|
|
|
("base58" ,python-base58)
|
|
|
|
("jsonschema" ,python-jsonschema)
|
|
|
|
("libnacl" ,python-libnacl)
|
|
|
|
("pyaes" ,python-pyaes)
|
|
|
|
("pylibscrypt" ,python-pylibscrypt)
|
|
|
|
("pypeg2" ,python-pypeg2)))
|
2018-08-09 23:37:44 +02:00
|
|
|
(home-page "https://git.duniter.org/clients/python/duniterpy")
|
2018-07-02 23:27:07 +02:00
|
|
|
(synopsis "Python implementation of Duniter API")
|
|
|
|
(description "@code{duniterpy} is an implementation of
|
2018-12-19 23:49:46 +01:00
|
|
|
@uref{https://github.com/duniter/duniter/, duniter} API. Its
|
2018-07-02 23:27:07 +02:00
|
|
|
main features are:
|
|
|
|
@itemize
|
2018-12-19 23:49:46 +01:00
|
|
|
@item Support Duniter's Basic Merkle API and protocol
|
|
|
|
@item Asynchronous/synchronous without threads
|
|
|
|
@item Support HTTP, HTTPS and Web Socket transport for Basic Merkle API
|
|
|
|
@item Support Elasticsearch Duniter4j API
|
2018-07-02 23:27:07 +02:00
|
|
|
@item Duniter signing key
|
2018-12-19 23:49:46 +01:00
|
|
|
@item Sign/verify and encrypt/decrypt messages with the Duniter credentials
|
2018-07-02 23:27:07 +02:00
|
|
|
@end itemize")
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
2018-05-16 15:52:51 +02:00
|
|
|
(define-public silkaj
|
|
|
|
(package
|
|
|
|
(name "silkaj")
|
2019-08-01 22:34:04 +02:00
|
|
|
(version "0.7.3")
|
2018-05-16 15:52:51 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://git.duniter.org/clients/python/silkaj.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-08-01 22:34:04 +02:00
|
|
|
"0yk2574yb0d0k0rg7qf0pkmjidblsad04x8hhqpy9k80rvgjcr5w"))))
|
2018-05-16 15:52:51 +02:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
2018-12-02 00:23:55 +01:00
|
|
|
`(#:tests? #f)) ;no test
|
2018-05-16 15:52:51 +02:00
|
|
|
(inputs
|
2019-02-02 11:38:28 +01:00
|
|
|
`(("click" ,python-click)
|
|
|
|
("duniterpy" ,python-duniterpy)
|
|
|
|
("ipaddress" ,python-ipaddress)
|
|
|
|
("pynacl" ,python-pynacl)
|
2019-05-23 16:52:55 +02:00
|
|
|
("tabulate" ,python-tabulate)
|
|
|
|
("texttable" ,python-texttable)))
|
2018-05-16 15:52:51 +02:00
|
|
|
(home-page "https://silkaj.duniter.org/")
|
|
|
|
(synopsis "Command line client for Duniter network")
|
|
|
|
(description "@code{Silkaj} is a command line client for the
|
|
|
|
@uref{https://github.com/duniter/duniter/, Duniter} network.
|
|
|
|
|
|
|
|
Its features are:
|
|
|
|
@itemize
|
|
|
|
@item information about currency,
|
|
|
|
@item issuers difficulty to generate next block,
|
|
|
|
@item network view of nodes,
|
|
|
|
@item list of last issuers,
|
|
|
|
@item send transactions,
|
|
|
|
@item get account amount.
|
|
|
|
@end itemize")
|
|
|
|
(license license:agpl3+)))
|
2019-07-12 18:05:00 +02:00
|
|
|
|
|
|
|
(define-public grisbi
|
|
|
|
(package
|
|
|
|
(name "grisbi")
|
|
|
|
(version "1.2.2")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"mirror://sourceforge/grisbi/grisbi%20stable/"
|
|
|
|
(version-major+minor version) ".x/" version
|
|
|
|
"/grisbi-" version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw"))))
|
|
|
|
(build-system glib-or-gtk-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags (list "--without-ofx")))
|
|
|
|
(propagated-inputs
|
|
|
|
`(("dconf" ,dconf)))
|
|
|
|
(native-inputs
|
|
|
|
`(("glib" ,glib "bin") ; glib-compile-schemas
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("intltool" ,intltool)))
|
|
|
|
(inputs
|
|
|
|
`(("gtk+" ,gtk+)
|
|
|
|
("libgsf" ,libgsf)))
|
|
|
|
(synopsis "Personal accounting application")
|
|
|
|
(description "Grisbi is a personal accounting application written by
|
|
|
|
French developers that is designed to follow French accounting rules.
|
|
|
|
Grisbi can manage multiple accounts, currencies and users. It manages
|
|
|
|
third party, expenditure and receipt categories, budgetary lines,
|
|
|
|
financial years, budget estimates, bankcard management and other
|
|
|
|
information.")
|
|
|
|
(home-page "http://grisbi.org")
|
|
|
|
(license license:gpl2+)))
|
2019-07-31 02:11:59 +02:00
|
|
|
|
|
|
|
(define-public trezord
|
|
|
|
(package
|
|
|
|
(name "trezord")
|
|
|
|
(version "2.0.17")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/trezor/trezord-go.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0nqzpq0i3crh0i4r1cppja5sn3rwi1fv9afxzwzv63096x5l30a7"))
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(build-system go-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:import-path "github.com/trezor/trezord-go"))
|
|
|
|
(home-page "https://trezor.io")
|
|
|
|
(synopsis "Trezor Communication Daemon aka Trezor Bridge (written in Go)")
|
|
|
|
(description "This allows a Trezor hardware wallet to communicate to the
|
|
|
|
Trezor wallet.")
|
|
|
|
(license license:lgpl3+)))
|