gnu: certbot: Build with Python 3.

* gnu/packages/tls.scm (certbot): Use python-3 to build.
[native-inputs, propagated-inputs]: Use Python 3 variants of dependencies. Use
python-mock-2.
master
Leo Famulari 2017-05-06 15:58:16 -04:00
parent 731b0c727c
commit fed1898d4e
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 20 additions and 21 deletions

View File

@ -524,7 +524,7 @@ security, and applying best practice development processes.")
#t)))))) #t))))))
;; TODO: Add optional inputs for testing. ;; TODO: Add optional inputs for testing.
(native-inputs (native-inputs
`(("python-mock" ,python-mock) `(("python-mock" ,python-mock-2)
;; For documentation ;; For documentation
("python-sphinx" ,python-sphinx) ("python-sphinx" ,python-sphinx)
("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput) ("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput)
@ -560,8 +560,7 @@ security, and applying best practice development processes.")
"1srvmjxz75dbafx7xfg1w3n9h3srr9p2ljnfsih9dwwd5cxh9i5q")))) "1srvmjxz75dbafx7xfg1w3n9h3srr9p2ljnfsih9dwwd5cxh9i5q"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:python ,python-2 `(,@(substitute-keyword-arguments (package-arguments python-acme)
,@(substitute-keyword-arguments (package-arguments python-acme)
((#:phases phases) ((#:phases phases)
`(modify-phases ,phases `(modify-phases ,phases
(replace 'install-documentation (replace 'install-documentation
@ -576,27 +575,27 @@ security, and applying best practice development processes.")
#t)))))))) #t))))))))
;; TODO: Add optional inputs for testing. ;; TODO: Add optional inputs for testing.
(native-inputs (native-inputs
`(("python2-nose" ,python2-nose) `(("python-nose" ,python-nose)
("python2-mock" ,python2-mock) ("python-mock" ,python-mock-2)
;; For documentation ;; For documentation
("python2-sphinx" ,python2-sphinx) ("python-sphinx" ,python-sphinx)
("python2-sphinx-rtd-theme" ,python2-sphinx-rtd-theme) ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
("python2-sphinx-repoze-autointerface" ,python2-sphinx-repoze-autointerface) ("python-sphinx-repoze-autointerface" ,python-sphinx-repoze-autointerface)
("python2-sphinxcontrib-programoutput" ,python2-sphinxcontrib-programoutput) ("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput)
("texinfo" ,texinfo))) ("texinfo" ,texinfo)))
(propagated-inputs (propagated-inputs
`(("python2-acme" ,python2-acme) `(("python-acme" ,python-acme)
("python2-zope-interface" ,python2-zope-interface) ("python-zope-interface" ,python-zope-interface)
("python2-pyrfc3339" ,python2-pyrfc3339) ("python-pyrfc3339" ,python-pyrfc3339)
("python2-pyopenssl" ,python2-pyopenssl) ("python-pyopenssl" ,python-pyopenssl)
("python2-configobj" ,python2-configobj) ("python-configobj" ,python-configobj)
("python2-configargparse" ,python2-configargparse) ("python-configargparse" ,python-configargparse)
("python2-zope-component" ,python2-zope-component) ("python-zope-component" ,python-zope-component)
("python2-parsedatetime" ,python2-parsedatetime) ("python-parsedatetime" ,python-parsedatetime)
("python2-six" ,python2-six) ("python-six" ,python-six)
("python2-psutil" ,python2-psutil) ("python-psutil" ,python-psutil)
("python2-requests" ,python2-requests) ("python-requests" ,python-requests)
("python2-pytz" ,python2-pytz))) ("python-pytz" ,python-pytz)))
(synopsis "Let's Encrypt client by the Electronic Frontier Foundation") (synopsis "Let's Encrypt client by the Electronic Frontier Foundation")
(description "Certbot automatically receives and installs X.509 certificates (description "Certbot automatically receives and installs X.509 certificates
to enable Transport Layer Security (TLS) on servers. It interoperates with the to enable Transport Layer Security (TLS) on servers. It interoperates with the