From f66c61d088008b17c9c0a88936eb2adbb5d3ef94 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 7 Dec 2015 16:19:35 -0500 Subject: [PATCH 2/8] gnu: Add python-rsa. * gnu/packages/python.scm (python-rsa, python2-rsa): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a12709f..6bdca89 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7277,3 +7277,31 @@ text.") (define-public python2-colorama (package-with-python2 python-colorama)) + +(define-public python-rsa + (package + (name "python-rsa") + (version "3.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/r/rsa/rsa-" + version ".tar.gz")) + (sha256 + (base32 + "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh")))) + (build-system python-build-system) + (inputs + `(("python-pyasn1" ,python-pyasn1) + ("python-setuptools" ,python-setuptools))) + (synopsis "Pure-Python RSA implementation") + (description "Python-RSA is a pure-Python RSA implementation. It supports +encryption and decryption, signing and verifying signatures, and key +generation according to PKCS#1 version 1.5. It can be used as a Python +library as well as on the command line.") + (home-page "http://stuvel.eu/rsa") + (license asl2.0))) + +(define-public python2-rsa + (package-with-python2 python-rsa)) -- 2.6.3