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
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
|
|
|
|
|
;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
|
|
|
|
;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
|
|
|
|
|
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
|
|
|
|
|
;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
|
|
|
|
|
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
|
|
|
|
|
;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
|
|
|
|
|
;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
|
|
|
|
|
;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
|
2018-03-29 18:32:38 +02:00
|
|
|
|
;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
Correct name and Email for ng0.
* .mailmap: Correct name and Email for ng0.
* Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm,
gnu/packages/cdrom.scm, gnu/packages/check.scm,
gnu/packages/cinnamon.scm, gnu/packages/compression.scm,
gnu/packages/crypto.scm, gnu/packages/databases.scm,
gnu/packages/django.scm, gnu/packages/dns.scm,
gnu/packages/emacs.scm, gnu/packages/enlightenment.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm,
gnu/packages/forth.scm, gnu/packages/fvwm.scm,
gnu/packages/games.scm, gnu/packages/gl.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm,
gnu/packages/guile.scm, gnu/packages/haskell-check.scm,
gnu/packages/haskell-crypto.scm, gnu/packages/haskell.scm,
gnu/packages/image-viewers.scm, gnu/packages/image.scm,
gnu/packages/irc.scm, gnu/packages/language.scm,
gnu/packages/libcanberra.scm, gnu/packages/linux.scm,
gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm,
gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm,
gnu/packages/music.scm, gnu/packages/ncurses.scm,
gnu/packages/networking.scm, gnu/packages/nickle.scm,
gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-crypto.scm, gnu/packages/python-web.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/ruby.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/serialization.scm,
gnu/packages/shells.scm, gnu/packages/ssh.scm,
gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm,
gnu/packages/tls.scm, gnu/packages/tor.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm,
gnu/packages/xfce.scm, gnu/packages/xml.scm,
gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm,
guix/licenses.scm: Likewise.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2018-03-20 16:39:45 +01:00
|
|
|
|
;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
|
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
|
|
|
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
|
|
|
|
;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
|
|
|
|
|
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
|
|
|
|
;;; Copyright © 2016, 2017 Arun Isaac <arunisaac@systemreboot.net>
|
|
|
|
|
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
2018-04-17 21:57:35 +02:00
|
|
|
|
;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
|
2018-04-23 00:12:54 +02:00
|
|
|
|
;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2018-06-26 06:32:06 +02:00
|
|
|
|
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
|
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
|
|
|
|
;;;
|
|
|
|
|
;;; 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 python-crypto)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
|
#:use-module (guix build-system python)
|
|
|
|
|
#:use-module (gnu packages)
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
#:use-module (gnu packages check)
|
2017-11-15 14:44:36 +01:00
|
|
|
|
#:use-module (gnu packages crypto)
|
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 libffi)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
|
#:use-module (gnu packages protobuf)
|
|
|
|
|
#:use-module (gnu packages python)
|
2018-04-23 00:25:41 +02:00
|
|
|
|
#:use-module (gnu packages python-web)
|
gnu: Move date/time packages from python.scm to time.scm.
* gnu/packages/python.scm (python-pytz, python2-pytz, python-dateutil,
python2-dateutil, python-parsedatetime, python2-parsedatetime,
python-tzlocal, python-isodate, python2-isodate, python-iso8601,
python2-iso8601, python-monotonic, python2-monotonic, python-pyrfc3339,
python2-pyrfc3339, python-arrow, python2-arrow, python-aniso8601,
python2-aniso8601): Move from here...
* gnu/packages/time.scm: ...to here.
* gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/django.scm,
gnu/packages/ebook.scm,
gnu/packages/gnome.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/mail.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/tls.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm: Adjust accordingly.
2017-11-18 11:58:44 +01:00
|
|
|
|
#:use-module (gnu packages time)
|
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 tls)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (srfi srfi-1))
|
|
|
|
|
|
2018-04-23 00:12:54 +02:00
|
|
|
|
(define-public python-base58
|
|
|
|
|
(package
|
|
|
|
|
(name "python-base58")
|
|
|
|
|
(version "1.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "base58" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0lgnk7ycdxwhk2bkygl30nsks56bvrdj79ix76iv965pz808pzn5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pyhamcrest" ,python-pyhamcrest)))
|
|
|
|
|
(home-page "https://github.com/keis/base58")
|
|
|
|
|
(synopsis "Base58 and Base58Check implementation")
|
|
|
|
|
(description "Base58 and Base58Check implementation compatible
|
|
|
|
|
with what is used by the Bitcoin network.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2018-04-19 17:47:28 +02:00
|
|
|
|
(define-public python-bcrypt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-bcrypt")
|
|
|
|
|
(version "3.1.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "bcrypt" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"13cyrnqwkhc70rs6dg65z4yrrr3dc42fhk11804fqmci9hvimvb7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pycparser" ,python-pycparser)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cffi" ,python-cffi)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/pyca/bcrypt/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Modern password hashing library")
|
|
|
|
|
(description
|
|
|
|
|
"Bcrypt is a Python module which provides a password hashing method based
|
|
|
|
|
on the Blowfish password hashing algorithm, as described in
|
|
|
|
|
@url{http://static.usenix.org/events/usenix99/provos.html,\"A Future-Adaptable
|
|
|
|
|
Password Scheme\"} by Niels Provos and David Mazieres.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-bcrypt
|
|
|
|
|
(package-with-python2 python-bcrypt))
|
|
|
|
|
|
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
|
|
|
|
(define-public python-passlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-passlib")
|
|
|
|
|
(version "1.7.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "passlib" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1q2khqpj9rlcgdmkypjdq1kswvhjf72bq0zk2cv669cc2dj8z51x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-py-bcrypt" ,python-py-bcrypt)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'set-PYTHON_EGG_CACHE
|
|
|
|
|
;; some tests require access to "$HOME/.cython"
|
|
|
|
|
(lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)))))
|
|
|
|
|
(home-page "https://bitbucket.org/ecollins/passlib")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Comprehensive password hashing framework")
|
|
|
|
|
(description
|
|
|
|
|
"Passlib is a password hashing library for Python 2 & 3, which provides
|
|
|
|
|
cross-platform implementations of over 30 password hashing algorithms, as well
|
|
|
|
|
as a framework for managing existing password hashes. It's designed to be
|
|
|
|
|
useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
|
|
|
|
|
to providing full-strength password hashing for multi-user application.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-passlib
|
|
|
|
|
(package-with-python2 python-passlib))
|
|
|
|
|
|
|
|
|
|
(define-public python-py-bcrypt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-py-bcrypt")
|
|
|
|
|
(version "0.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://code.google.com/p/py-bcrypt")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Bcrypt password hashing and key derivation")
|
|
|
|
|
(description
|
|
|
|
|
"A python wrapper of OpenBSD's Blowfish password hashing code. This
|
|
|
|
|
system hashes passwords using a version of Bruce Schneier's Blowfish block
|
|
|
|
|
cipher with modifications designed to raise the cost of off-line password
|
|
|
|
|
cracking and frustrate fast hardware implementation. The computation cost of
|
|
|
|
|
the algorithm is parametised, so it can be increased as computers get faster.
|
|
|
|
|
The intent is to make a compromise of a password database less likely to
|
|
|
|
|
result in an attacker gaining knowledge of the plaintext passwords (e.g. using
|
|
|
|
|
John the Ripper).")
|
|
|
|
|
;; "sha2.c" is under BSD-3;
|
|
|
|
|
;; "blowfish.c" and "bcrypt.c" are under BSD-4;
|
|
|
|
|
;; the rest is under ISC.
|
|
|
|
|
(license (list license:isc license:bsd-3 license:bsd-4))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-py-bcrypt
|
|
|
|
|
(package-with-python2 python-py-bcrypt))
|
|
|
|
|
|
2018-06-26 06:32:06 +02:00
|
|
|
|
(define-public python-pyblake2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyblake2")
|
|
|
|
|
(version "1.1.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyblake2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0gz9hgznv5zw4qjq43xa56y0yikimx30gffvibxzm0nv5sq7xk2w"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/dchest/pyblake2")
|
|
|
|
|
(synopsis "BLAKE2 hash function for Python")
|
|
|
|
|
(description "BLAKE2 is a cryptographic hash function, which offers
|
|
|
|
|
stronger security while being as fast as MD5 or SHA-1, and comes in two
|
|
|
|
|
flavors: @code{BLAKE2b}, optimized for 64-bit platforms and produces digests
|
|
|
|
|
of any size between 1 and 64 bytes, and @code{BLAKE2s}, optimized for 8- to
|
|
|
|
|
32-bit platforms and produces digests of any size between 1 and 32 bytes.
|
|
|
|
|
|
|
|
|
|
This package provides a Python interface for BLAKE2.")
|
|
|
|
|
;; The COPYING file declares it as public domain, with the option to
|
|
|
|
|
;; alternatively use and redistribute it under a variety of permissive
|
|
|
|
|
;; licenses. cc0 is explicitly mentioned in setup.py and pyblake2module.c.
|
|
|
|
|
(license (list license:public-domain license:cc0))))
|
|
|
|
|
|
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
|
|
|
|
(define-public python-paramiko
|
|
|
|
|
(package
|
|
|
|
|
(name "python-paramiko")
|
2018-04-12 20:09:58 +02:00
|
|
|
|
(version "2.4.1")
|
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
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "paramiko" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-04-12 20:09:58 +02:00
|
|
|
|
"1wx4s95i2cdh8hhi1c3jb8lzk71jifa3z9wjfsx905y7lrsngqrk"))))
|
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
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2018-04-12 20:09:58 +02:00
|
|
|
|
`(;; FIXME: Tests require many unpackaged libraries, see dev-requirements.txt.
|
|
|
|
|
#:tests? #f))
|
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
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyasn1" ,python-pyasn1)
|
|
|
|
|
("python-cryptography" ,python-cryptography)))
|
|
|
|
|
(home-page "http://www.paramiko.org/")
|
|
|
|
|
(synopsis "SSHv2 protocol library")
|
|
|
|
|
(description "Paramiko is a python implementation of the SSHv2 protocol,
|
|
|
|
|
providing both client and server functionality. While it leverages a Python C
|
|
|
|
|
extension for low level cryptography (PyCrypto), Paramiko itself is a pure
|
|
|
|
|
Python interface around SSH networking concepts.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-paramiko
|
|
|
|
|
(package-with-python2 python-paramiko))
|
|
|
|
|
|
|
|
|
|
(define-public python-ecdsa
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ecdsa")
|
|
|
|
|
(version "0.13")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/warner/python-ecdsa")
|
|
|
|
|
(synopsis
|
|
|
|
|
"ECDSA cryptographic signature library (pure python)")
|
|
|
|
|
(description
|
|
|
|
|
"This is an easy-to-use implementation of ECDSA cryptography (Elliptic
|
|
|
|
|
Curve Digital Signature Algorithm), implemented purely in Python. With this
|
|
|
|
|
library, you can quickly create keypairs (signing key and verifying key), sign
|
|
|
|
|
messages, and verify the signatures. The keys and signatures are very short,
|
|
|
|
|
making them easy to handle and incorporate into other protocols.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ecdsa
|
|
|
|
|
(package-with-python2 python-ecdsa))
|
|
|
|
|
|
|
|
|
|
;;; Pycrypto is abandoned upstream:
|
|
|
|
|
;;;
|
|
|
|
|
;;; https://github.com/dlitz/pycrypto/issues/173
|
|
|
|
|
;;;
|
|
|
|
|
;;; TODO Remove this package from GNU Guix.
|
|
|
|
|
(define-public python-pycrypto
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pycrypto")
|
|
|
|
|
(version "2.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pycrypto" version))
|
|
|
|
|
(patches (search-patches "python-pycrypto-CVE-2013-7459.patch"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python)
|
|
|
|
|
("gmp" ,gmp)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'set-build-env
|
|
|
|
|
;; pycrypto runs an autoconf configure script behind the scenes
|
|
|
|
|
(lambda _ (setenv "CONFIG_SHELL" (which "bash")) #t)))))
|
|
|
|
|
(home-page "http://www.pycrypto.org/")
|
|
|
|
|
(synopsis "Cryptographic modules for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Pycrypto is a collection of both secure hash functions (such as SHA256
|
|
|
|
|
and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
|
|
|
|
|
etc.). The package is structured to make adding new modules easy.")
|
|
|
|
|
(license license:public-domain)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pycrypto
|
|
|
|
|
(let ((pycrypto (package-with-python2 python-pycrypto)))
|
|
|
|
|
(package (inherit pycrypto)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-2)
|
|
|
|
|
,@(alist-delete
|
|
|
|
|
"python"
|
|
|
|
|
(package-inputs pycrypto)))))))
|
|
|
|
|
|
|
|
|
|
(define-public python-keyring
|
|
|
|
|
(package
|
|
|
|
|
(name "python-keyring")
|
|
|
|
|
(version "8.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "keyring" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-setuptools-scm" ,python-setuptools-scm)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pycrypto" ,python-pycrypto)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ;TODO: tests require pytest
|
|
|
|
|
(home-page "https://github.com/jaraco/keyring")
|
|
|
|
|
(synopsis "Store and access your passwords safely")
|
|
|
|
|
(description
|
|
|
|
|
"The Python keyring lib provides a easy way to access the system keyring
|
|
|
|
|
service from python. It can be used in any application that needs safe
|
|
|
|
|
password storage.")
|
|
|
|
|
;; "MIT" and PSF dual license
|
|
|
|
|
(license license:x11)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-keyring
|
|
|
|
|
(package-with-python2 python-keyring))
|
|
|
|
|
|
|
|
|
|
(define-public python-certifi
|
|
|
|
|
(package
|
|
|
|
|
(name "python-certifi")
|
|
|
|
|
(version "2017.1.23")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "certifi" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1klrzl3hgvcf2mjk00g0k3kk1p2z27vzwnxivwar4vhjmjvpz1w1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://certifi.io/")
|
|
|
|
|
(synopsis "Python CA certificate bundle")
|
|
|
|
|
(description
|
|
|
|
|
"Certifi is a Python library that contains a CA certificate bundle, which
|
|
|
|
|
is used by the Requests library to verify HTTPS requests.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-certifi
|
|
|
|
|
(package-with-python2 python-certifi))
|
|
|
|
|
|
|
|
|
|
(define-public python-cryptography-vectors
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cryptography-vectors")
|
2018-03-29 18:32:38 +02:00
|
|
|
|
(version "2.2.2")
|
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
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cryptography_vectors" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-03-29 18:32:38 +02:00
|
|
|
|
"122na0c6r24ch2ifyr4ccjyih0inpqy7bc5za77699g3pa22rd98"))))
|
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
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/pyca/cryptography")
|
|
|
|
|
(synopsis "Test vectors for the cryptography package")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains test vectors for the cryptography package.")
|
|
|
|
|
;; Distributed under either BSD-3 or ASL2.0
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-cryptography-vectors
|
|
|
|
|
(package-with-python2 python-cryptography-vectors))
|
|
|
|
|
|
|
|
|
|
(define-public python-cryptography
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cryptography")
|
2018-03-29 18:32:38 +02:00
|
|
|
|
(version "2.2.2")
|
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
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cryptography" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-03-29 18:32:38 +02:00
|
|
|
|
"0qrgip8vgcpk7v1jwf67mg50np5iprxrv8qrg8p382hkd6zrbhlz"))))
|
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
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-asn1crypto" ,python-asn1crypto)
|
|
|
|
|
("python-cffi" ,python-cffi)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("python-idna" ,python-idna)
|
|
|
|
|
("python-iso8601" ,python-iso8601)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-cryptography-vectors" ,python-cryptography-vectors)
|
|
|
|
|
("python-hypothesis" ,python-hypothesis)
|
|
|
|
|
("python-pretend" ,python-pretend)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
2017-11-19 15:01:00 +01:00
|
|
|
|
("python-pytest" ,python-pytest)))
|
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
|
|
|
|
(home-page "https://github.com/pyca/cryptography")
|
|
|
|
|
(synopsis "Cryptographic recipes and primitives for Python")
|
|
|
|
|
(description
|
|
|
|
|
"cryptography is a package which provides cryptographic recipes and
|
|
|
|
|
primitives to Python developers. It aims to be the “cryptographic standard
|
|
|
|
|
library” for Python. The package includes both high level recipes, and low
|
|
|
|
|
level interfaces to common cryptographic algorithms such as symmetric ciphers,
|
|
|
|
|
message digests and key derivation functions.")
|
|
|
|
|
;; Distributed under either BSD-3 or ASL2.0
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0))
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-cryptography))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-cryptography
|
|
|
|
|
(let ((crypto (package-with-python2
|
|
|
|
|
(strip-python2-variant python-cryptography))))
|
|
|
|
|
(package (inherit crypto)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-ipaddress" ,python2-ipaddress)
|
|
|
|
|
("python2-backport-ssl-match-hostname"
|
|
|
|
|
,python2-backport-ssl-match-hostname)
|
|
|
|
|
("python2-enum34" ,python2-enum34)
|
|
|
|
|
,@(package-propagated-inputs crypto))))))
|
|
|
|
|
|
|
|
|
|
(define-public python-pyopenssl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyopenssl")
|
2018-02-20 15:15:05 +01:00
|
|
|
|
(version "17.5.0")
|
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
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyOpenSSL" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-02-20 15:15:05 +01:00
|
|
|
|
"0wv78mwsdqbxqwdwllf4maqybhbj3vb8328ia04hnb558sxcy41c"))))
|
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
|
|
|
|
(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)
|
|
|
|
|
(zero? (system* "py.test" "-v" "-k"
|
|
|
|
|
(string-append
|
|
|
|
|
;; This test tries to look up certificates from
|
|
|
|
|
;; the compiled-in default path in OpenSSL, which
|
|
|
|
|
;; does not exist in the build environment.
|
|
|
|
|
"not test_fallback_default_verify_paths "
|
|
|
|
|
;; This test attempts to make a connection to
|
|
|
|
|
;; an external web service.
|
|
|
|
|
"and not test_set_default_verify_paths"))))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cryptography" ,python-cryptography)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-flaky" ,python-flaky)
|
|
|
|
|
("python-pretend" ,python-pretend)
|
2017-11-19 15:01:00 +01:00
|
|
|
|
("python-pytest" ,python-pytest)))
|
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
|
|
|
|
(home-page "https://github.com/pyca/pyopenssl")
|
|
|
|
|
(synopsis "Python wrapper module around the OpenSSL library")
|
|
|
|
|
(description
|
|
|
|
|
"PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
|
|
|
|
|
library.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyopenssl
|
|
|
|
|
(package-with-python2 python-pyopenssl))
|
|
|
|
|
|
2017-12-24 01:51:20 +01:00
|
|
|
|
(define-public python-ed25519
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ed25519")
|
|
|
|
|
(version "1.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ed25519" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ahx1nkxa0xis3cw0h5c4fpgv8mq4znkq7kajly33lc3317bk499"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/warner/python-ed25519")
|
|
|
|
|
(synopsis "Ed25519 public-key signatures")
|
|
|
|
|
(description "Ed25519 public-key signatures")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ed25519
|
|
|
|
|
(package-with-python2 python-ed25519))
|
|
|
|
|
|
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
|
|
|
|
(define-public python-axolotl-curve25519
|
|
|
|
|
(package
|
|
|
|
|
(name "python-axolotl-curve25519")
|
|
|
|
|
(version "0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/tgalal/python-axolotl-curve25519")
|
|
|
|
|
(commit "e4a9c4de0eae27223200579c58d1f8f6d20637e2")))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0agap5q0hmvf6cwzjqc05kw53pjgf6942pcivpazksmg1vk400ra"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Prevent creation of the egg. This works around
|
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
|
|
|
|
|
#:configure-flags '("--root=/")))
|
|
|
|
|
(home-page "https://github.com/tgalal/python-axolotl-curve25519")
|
|
|
|
|
(synopsis "Python wrapper for curve25519 library")
|
|
|
|
|
(description "This is a python wrapper for the curve25519 library
|
|
|
|
|
with ed25519 signatures. The C code was pulled from
|
|
|
|
|
libaxolotl-android. At the moment this wrapper is meant for use by
|
|
|
|
|
python-axolotl.")
|
|
|
|
|
(license (list license:gpl3 ; Most files
|
|
|
|
|
license:bsd-3)))) ; curve/curve25519-donna.c
|
|
|
|
|
|
|
|
|
|
(define-public python2-axolotl-curve25519
|
|
|
|
|
(package-with-python2 python-axolotl-curve25519))
|
|
|
|
|
|
|
|
|
|
(define-public python-axolotl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-axolotl")
|
2017-11-23 21:04:46 +01:00
|
|
|
|
(version "0.1.39")
|
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
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/tgalal/python-axolotl/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2017-11-23 21:04:46 +01:00
|
|
|
|
(patches (search-patches "python-axolotl-AES-fix.patch"))
|
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
|
|
|
|
(sha256
|
2017-11-23 21:04:46 +01:00
|
|
|
|
(base32 "0badsgkgz0ir3hqynxzsfjgacppi874syvvmgccc6j164053x6zm"))))
|
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
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Don't install tests
|
|
|
|
|
(add-before 'install 'remove-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
'("axolotl/tests" "build/lib/axolotl/tests"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-axolotl-curve25519" ,python-axolotl-curve25519)
|
|
|
|
|
("python-dateutil" ,python-dateutil)
|
|
|
|
|
("python-protobuf" ,python-protobuf)
|
|
|
|
|
("python-pycrypto" ,python-pycrypto)))
|
|
|
|
|
(home-page "https://github.com/tgalal/python-axolotl")
|
|
|
|
|
(synopsis "Python port of libaxolotl-android")
|
|
|
|
|
(description "This is a python port of libaxolotl-android. This
|
|
|
|
|
is a ratcheting forward secrecy protocol that works in synchronous and
|
|
|
|
|
asynchronous messaging environments.")
|
|
|
|
|
(license license:gpl3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-axolotl
|
|
|
|
|
(package-with-python2 python-axolotl))
|
|
|
|
|
|
|
|
|
|
;; SlowAES isn't compatible with Python 3.
|
|
|
|
|
(define-public python2-slowaes
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-slowaes")
|
|
|
|
|
(version "0.1a1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "slowaes" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"02dzajm83a7lqgxf6r3hgj64wfmcxz8gs4nvgxpvj5n19kjqlrc3"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:python ,python-2))
|
|
|
|
|
(home-page "http://code.google.com/p/slowaes/")
|
|
|
|
|
(synopsis "Implementation of AES in Python")
|
|
|
|
|
(description "This package contains an implementation of AES in Python.
|
|
|
|
|
This implementation is slow (hence the project name) but still useful when
|
|
|
|
|
faster ones are not available.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python-pyaes
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyaes")
|
2018-03-10 23:20:08 +01:00
|
|
|
|
(version "1.6.1")
|
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
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pyaes" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-03-10 23:20:08 +01:00
|
|
|
|
"13vdaff15k0jyfcss4b4xvfgm8xyv0nrbyw5n1qc7lrqbi0b3h82"))))
|
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
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/ricmoo/pyaes")
|
|
|
|
|
(synopsis "Implementation of AES in Python")
|
|
|
|
|
(description "This package contains a pure-Python implementation of the
|
|
|
|
|
AES block cipher algorithm and the common modes of operation (CBC, CFB, CTR,
|
|
|
|
|
ECB and OFB).")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyaes
|
|
|
|
|
(package-with-python2 python-pyaes))
|
2017-11-15 14:44:36 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-asn1crypto
|
|
|
|
|
(package
|
|
|
|
|
(name "python-asn1crypto")
|
|
|
|
|
(version "0.22.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/wbond/asn1crypto/archive/"
|
|
|
|
|
version ".tar.gz"))
|
2018-03-13 19:13:56 +01:00
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2017-11-15 14:44:36 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1kn910896l3knmilla1c9ly20q181s43w1ah08lzkbm1h3j6pcz0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/wbond/asn1crypto")
|
|
|
|
|
(synopsis "ASN.1 parser and serializer in Python")
|
|
|
|
|
(description "asn1crypto is an ASN.1 parser and serializer with definitions
|
|
|
|
|
for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7,
|
|
|
|
|
PKCS#8, PKCS#12, PKCS#5, X.509 and TSP.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-asn1crypto
|
|
|
|
|
(package-with-python2 python-asn1crypto))
|
|
|
|
|
|
|
|
|
|
(define-public python-pynacl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pynacl")
|
2018-06-23 00:25:51 +02:00
|
|
|
|
(version "1.2.1")
|
2017-11-15 14:44:36 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "PyNaCl" version))
|
|
|
|
|
(modules '((guix build utils)))
|
2018-06-23 00:25:51 +02:00
|
|
|
|
;; Remove bundled libsodium.
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
|
(snippet '(begin (delete-file-recursively "src/libsodium")
|
|
|
|
|
#t))
|
2017-11-15 14:44:36 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-06-23 00:25:51 +02:00
|
|
|
|
"1ada3qr83cliap6dk897vnvjkynij1kjqbwizdbgarazlyh8zlz0"))))
|
2017-11-15 14:44:36 +01:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'use-system-sodium
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "SODIUM_INSTALL" "system")
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2018-03-19 17:20:22 +01:00
|
|
|
|
`(("python-hypothesis" ,python-hypothesis)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
2017-11-15 14:44:36 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cffi" ,python-cffi)
|
|
|
|
|
("python-six" ,python-six)
|
|
|
|
|
("libsodium" ,libsodium)))
|
|
|
|
|
(home-page "https://github.com/pyca/pynacl/")
|
|
|
|
|
(synopsis "Python bindings to libsodium")
|
|
|
|
|
(description
|
|
|
|
|
"PyNaCl is a Python binding to libsodium, which is a fork of the
|
|
|
|
|
Networking and Cryptography library. These libraries have a stated goal
|
|
|
|
|
of improving usability, security and speed.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2018-04-17 21:29:41 +02:00
|
|
|
|
(define-public python2-pynacl
|
|
|
|
|
(package-with-python2 python-pynacl))
|
|
|
|
|
|
2017-11-15 14:44:36 +01:00
|
|
|
|
(define-public python2-pgpdump
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pgpdump")
|
|
|
|
|
(version "1.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pgpdump" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
|
|
|
|
|
;; Currently fails to build with Python 3.
|
|
|
|
|
(arguments `(#:python ,python-2))
|
|
|
|
|
|
|
|
|
|
(home-page "https://github.com/toofishes/python-pgpdump")
|
|
|
|
|
(synopsis "Python library for parsing PGP packets")
|
|
|
|
|
(description
|
|
|
|
|
"Python-pgpdump is an OpenPGP packet parser based on
|
|
|
|
|
@uref{http://www.mew.org/~kazu/proj/pgpdump/, pgpdump}. It notably supports:
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item signature packets;
|
|
|
|
|
@item public key packets;
|
|
|
|
|
@item secret key packets;
|
|
|
|
|
@item trust, user ID, and user attribute packets;
|
|
|
|
|
@item ASCII-armor decoding and CRC check.
|
|
|
|
|
@end itemize\n")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-roca-detect
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-roca-detect")
|
|
|
|
|
(version "1.0.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "roca-detect" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1di4akyw2lf5r8zfwvyhkilz8jv8g4b66rgaqwfabmjwma6gnw27"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
;; TODO: apk_parse_ph4, pyjks
|
|
|
|
|
`(("python2-dateutil" ,python2-dateutil)
|
|
|
|
|
("python2-six" ,python2-six)
|
|
|
|
|
("python2-cryptography" ,python2-cryptography)
|
|
|
|
|
("python2-future" ,python2-future)
|
|
|
|
|
("python2-coloredlogs" ,python2-coloredlogs)
|
|
|
|
|
("python2-pgpdump" ,python2-pgpdump)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(;; Basic testing routine is quite simple and works with Py3
|
|
|
|
|
;; but the rest of the code that processes the different
|
|
|
|
|
;; key formats and extracts the modulus for inspection is
|
|
|
|
|
;; not yet fully py3 ready.
|
|
|
|
|
#:python ,python-2))
|
|
|
|
|
(home-page "https://github.com/crocs-muni/roca")
|
|
|
|
|
(synopsis "ROCA detection tool")
|
|
|
|
|
(description
|
|
|
|
|
"This tool is related to the paper entitled @i{Return of the
|
|
|
|
|
Coppersmith’s Attack: Practical Factorization of Widely Used RSA Moduli}. It
|
|
|
|
|
enables you to test public RSA keys for a presence of the described
|
|
|
|
|
vulnerability. Currently the tool supports the following key formats: X.509
|
|
|
|
|
Certificate (DER encoded, PEM encoded), RSA PEM (encoded private key, public
|
|
|
|
|
key), SSH public key, ASC-encoded OpenPGP key, APK Android application, LDIFF
|
|
|
|
|
file, and more.")
|
|
|
|
|
(license license:gpl3)))
|
2017-12-24 03:00:20 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-ecpy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-ecpy")
|
|
|
|
|
(version "0.8.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ECPy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"090fqnj8z0xm44jrfpll7j45r68m6kp7mjr7yxzg93j42h3sj285"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-future" ,python-future)))
|
|
|
|
|
(home-page "https://github.com/ubinity/ECPy")
|
|
|
|
|
(synopsis "Pure Python Elliptic Curve Library")
|
|
|
|
|
(description "This package provides a Elliptic Curve Library in pure
|
|
|
|
|
Python.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-ecpy
|
|
|
|
|
(package-with-python2 python-ecpy))
|
2018-01-19 19:18:08 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-josepy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-josepy")
|
2018-04-26 21:20:21 +02:00
|
|
|
|
(version "1.1.0")
|
2018-01-19 19:18:08 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "josepy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-04-26 21:20:21 +02:00
|
|
|
|
"11khz8malzrv375b27jjkv66z6z6khdx1v5mkkr4vq16gp3n4p7v"))))
|
2018-01-19 19:18:08 +01:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2018-04-26 21:20:21 +02:00
|
|
|
|
;; The tests require flake8 >= 3.5, which is not yet packaged.
|
2018-01-19 19:18:08 +01:00
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cryptography" ,python-cryptography)
|
|
|
|
|
("python-pyopenssl" ,python-pyopenssl)
|
|
|
|
|
("python-six" ,python-six)))
|
2018-04-26 21:20:21 +02:00
|
|
|
|
;; TODO Enable when we have flake8 >= 3.5.
|
2018-01-19 19:18:08 +01:00
|
|
|
|
; (native-inputs
|
|
|
|
|
; `(("python-coverage" ,python-coverage)
|
|
|
|
|
; ("python-flake8" ,python-flake8)
|
|
|
|
|
; ("python-isort" ,python-isort)
|
|
|
|
|
; ("python-mock" ,python-mock)
|
2018-04-26 21:20:21 +02:00
|
|
|
|
; ("python-pytest" ,python-pytest)
|
2018-01-19 19:18:08 +01:00
|
|
|
|
; ("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
; ("python-pytest-cache" ,python-pytest-cache)
|
|
|
|
|
; ("python-pytest-flake8" ,python-pytest-flake8)))
|
|
|
|
|
(home-page "https://github.com/certbot/josepy")
|
|
|
|
|
(synopsis "JOSE protocol implementation in Python")
|
|
|
|
|
(description "This package provides a Python implementation of the JOSE
|
|
|
|
|
protocol (Javascript Object Signing and Encryption).")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-josepy
|
|
|
|
|
(package-with-python2 python-josepy))
|
2018-01-19 20:58:50 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-pycryptodome
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pycryptodome")
|
2018-03-10 16:36:07 +01:00
|
|
|
|
(version "3.5.1")
|
2018-01-19 20:58:50 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pycryptodome" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-03-10 16:36:07 +01:00
|
|
|
|
"15mc1h5ij1b6hcqvb048kb4k0ip64n2ky0zz0rml2s78ylv7g5dp"))))
|
2018-01-19 20:58:50 +01:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://www.pycryptodome.org")
|
|
|
|
|
(synopsis "Cryptographic library for Python")
|
|
|
|
|
(description "This package provides a cryptographic library for Python.
|
|
|
|
|
|
|
|
|
|
It brings the following enhancements with respect to the last official version
|
|
|
|
|
of PyCrypto:
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
|
|
|
|
|
@item Accelerated AES on Intel platforms via AES-NI
|
|
|
|
|
@item First class support for PyPy
|
|
|
|
|
@item Elliptic curves cryptography (NIST P-256 curve only)
|
|
|
|
|
@item Better and more compact API (nonce and iv attributes for ciphers,
|
|
|
|
|
automatic generation of random nonces and IVs, simplified CTR cipher mode, and
|
|
|
|
|
more)
|
|
|
|
|
@item SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
|
|
|
|
|
@item Salsa20 and ChaCha20 stream ciphers
|
|
|
|
|
@item scrypt and HKDF
|
|
|
|
|
@item Deterministic (EC)DSA
|
|
|
|
|
@item Password-protected PKCS#8 key containers
|
|
|
|
|
@item Shamir’s Secret Sharing scheme
|
|
|
|
|
@item Random numbers get sourced directly from the OS (and not from a CSPRNG
|
|
|
|
|
in userspace)
|
|
|
|
|
@item Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
|
|
|
|
|
@item Major clean ups and simplification of the code base
|
|
|
|
|
@end itemize\n")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pycryptodome
|
|
|
|
|
(package-with-python2 python-pycryptodome))
|
2018-04-17 21:57:35 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-m2crypto
|
|
|
|
|
(package
|
|
|
|
|
(name "python-m2crypto")
|
|
|
|
|
(version "0.29.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "M2Crypto" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1h16gpilrnlzc0iyj1mnd1iqh8wchzjsxjqw9n344glimg2s5zm0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs `(("openssl" ,openssl)))
|
|
|
|
|
(propagated-inputs `(("python-typing" ,python-typing)))
|
|
|
|
|
(home-page "https://gitlab.com/m2crypto/m2crypto")
|
|
|
|
|
(synopsis "Python crypto and TLS toolkit")
|
|
|
|
|
(description "@code{M2Crypto} is a complete Python wrapper for OpenSSL
|
|
|
|
|
featuring RSA, DSA, DH, EC, HMACs, message digests, symmetric ciphers
|
|
|
|
|
(including AES); TLS functionality to implement clients and servers; HTTPS
|
|
|
|
|
extensions to Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing
|
|
|
|
|
AuthCookies for web session management; FTP/TLS client and server; S/MIME;
|
|
|
|
|
M2Crypto can also be used to provide TLS for Twisted. Smartcards supported
|
|
|
|
|
through the Engine interface.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-m2crypto
|
|
|
|
|
(package-with-python2 python-m2crypto))
|
2018-04-23 00:14:06 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-pylibscrypt
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pylibscrypt")
|
|
|
|
|
(version "1.7.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pylibscrypt" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1b3rgzl6dbzs08vhv41b6y4n5189wv7lr27acxn104hs45745abs"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ;FIXME: unable to find libraries
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openssl" ,openssl)))
|
|
|
|
|
(home-page "https://github.com/jvarho/pylibscrypt")
|
|
|
|
|
(synopsis "Scrypt for Python")
|
|
|
|
|
(description "There are a lot of different scrypt modules for Python, but
|
|
|
|
|
none of them have everything that I'd like, so here's one more. It uses
|
|
|
|
|
hashlib.scrypt on Python 3.6 and OpenSSL 1.1.")
|
|
|
|
|
(license license:isc)))
|
2018-04-23 00:19:50 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-libnacl
|
|
|
|
|
(package
|
|
|
|
|
(name "python-libnacl")
|
|
|
|
|
(version "1.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "libnacl" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0nv7n8nfswkhl614x5mllrkvaslraa0053q11iylb337cy43vb4v"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'locate-libsodium
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "libnacl/__init__.py"
|
|
|
|
|
(("(return ctypes.cdll.LoadLibrary\\(')libsodium.so('\\))"
|
|
|
|
|
_ pre post)
|
|
|
|
|
(let ((libsodium (string-append (assoc-ref inputs "libsodium")
|
|
|
|
|
"/lib/libsodium.so")))
|
|
|
|
|
(string-append pre libsodium post)))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pyhamcrest" ,python-pyhamcrest)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libsodium" ,libsodium)))
|
|
|
|
|
(home-page "https://libnacl.readthedocs.org/")
|
|
|
|
|
(synopsis "Python bindings for libsodium based on ctypes")
|
|
|
|
|
(description "@code{libnacl} is used to gain direct access to the
|
|
|
|
|
functions exposed by @code{NaCl} library via @code{libsodium}. It has
|
|
|
|
|
been constructed to maintain extensive documentation on how to use
|
|
|
|
|
@code{NaCl} as well as being completely portable.")
|
|
|
|
|
(license license:asl2.0)))
|
2018-04-23 00:25:41 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-duniterpy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-duniterpy")
|
|
|
|
|
(version "0.43.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
;; Pypi's default URI is missing "requirements.txt" file.
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/duniter/duniter-python-api.git")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ch4f150k1p1l876pp08p5rxqhpv5xfbxdw6njcmr06hspv8v8x4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Among 108 tests, a single one is failing: FAIL:
|
|
|
|
|
;; test_from_pubkey. Remove it.
|
|
|
|
|
(add-after 'unpack 'remove-failing-test
|
|
|
|
|
(lambda _
|
|
|
|
|
(delete-file "tests/documents/test_crc_pubkey.py")
|
|
|
|
|
#t)))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-aiohttp" ,python-aiohttp)
|
|
|
|
|
("python-base58" ,python-base58)
|
|
|
|
|
("python-jsonschema" ,python-jsonschema)
|
|
|
|
|
("python-libnacl" ,python-libnacl)
|
|
|
|
|
("python-pylibscrypt" ,python-pylibscrypt)
|
|
|
|
|
("python-pypeg2" ,python-pypeg2)))
|
|
|
|
|
(home-page "https://github.com/duniter/duniter-python-api")
|
|
|
|
|
(synopsis "Python implementation of Duniter API")
|
|
|
|
|
(description "@code{duniterpy} is an implementation of
|
|
|
|
|
@uref{https://github.com/duniter/duniter/, duniter} API. Its
|
|
|
|
|
main features are:
|
|
|
|
|
@itemize
|
|
|
|
|
@item Supports Duniter's Basic Merkle API and protocol
|
|
|
|
|
@item Asynchronous
|
|
|
|
|
@item Duniter signing key
|
|
|
|
|
@end itemize")
|
|
|
|
|
(license license:gpl3+)))
|