* gnu/packages/python.scm (python-pycrypto, python2-pycrypto): New variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2e16838..886dc03 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1598,3 +1598,35 @@ somewhat intelligeble.") (define-public python2-pyjwt (package-with-python2 python-pyjwt)) +(define-public python-pycrypto + (package + (name "python-pycrypto") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/p/pycrypto/pycrypto-" + version ".tar.gz")) + (sha256 + (base32 + "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj")))) + (build-system python-build-system) + (inputs + `(("python" ,python) ;; need libpython3.3m + ("python-setuptools" ,python-setuptools) + ("gmp" ,gmp))) + (arguments + '(#:phases (alist-cons-before + 'build 'set-config-shell + (lambda _ + (setenv "CONFIG_SHELL" (which "sh"))) + %standard-phases))) + (home-page "http://www.pycrypto.org/") + (synopsis "Cryptographic modules for Python.") + (description "Cryptographic modules for Python.") + (license public-domain))) + +(define-public python2-pycrypto + (package-with-python2 python-pycrypto)) + -- 2.0.1