gnu: python: Implement the python naming scheme for pytz and babel.

* gnu/packages/python.scm (pytz): Rename this ...
* gnu/packages/python.scm (python-pytz): ... to this
* gnu/packages/python.scm (python2-pytz): New variable, input python-2.
* gnu/packages/python.scm (babel): Rename this ...
* gnu/packages/python.scm (python-babel): ... to this
* gnu/packages/python.scm (python2-babel): New variable, input python-2.
This commit is contained in:
Andreas Enge 2013-09-04 22:12:33 +02:00
parent aa9e22efa3
commit 89114f39e4

View file

@ -193,9 +193,9 @@ data types.")
without version suffix.")))) without version suffix."))))
(define-public pytz (define-public python-pytz
(package (package
(name "pytz") (name "python-pytz")
(version "2013b") (version "2013b")
(source (source
(origin (origin
@ -213,9 +213,14 @@ data types.")
using Python 2.4 or higher and provides access to the Olson timezone database.") using Python 2.4 or higher and provides access to the Olson timezone database.")
(license x11))) (license x11)))
(define-public babel (define-public python2-pytz
(package (inherit python-pytz)
(name "python2-pytz")
(arguments `(#:python ,python-2))))
(define-public python-babel
(package (package
(name "babel") (name "python-babel")
(version "0.9.6") (version "0.9.6")
(source (source
(origin (origin
@ -227,7 +232,7 @@ using Python 2.4 or higher and provides access to the Olson timezone database.")
"03vmr54jq5vf3qw6kpdv7cdk7x7i2jhzyf1mawv2gk8zrxg0hfja")))) "03vmr54jq5vf3qw6kpdv7cdk7x7i2jhzyf1mawv2gk8zrxg0hfja"))))
(build-system python-build-system) (build-system python-build-system)
(inputs (inputs
`(("pytz" ,pytz))) `(("python-pytz" ,python-pytz)))
(home-page "http://babel.edgewall.org/") (home-page "http://babel.edgewall.org/")
(synopsis (synopsis
"Tools for internationalizing Python applications") "Tools for internationalizing Python applications")
@ -238,3 +243,10 @@ using Python 2.4 or higher and provides access to the Olson timezone database.")
access to various locale display names, localized number and date formatting, access to various locale display names, localized number and date formatting,
etc. ") etc. ")
(license bsd-3))) (license bsd-3)))
(define-public python2-babel
(package (inherit python-babel)
(name "python2-babel")
(inputs
`(("python2-pytz" ,python2-pytz)))
(arguments `(#:python ,python-2))))