[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add python-flask-babel.
From: |
Marius Bakke |
Subject: |
04/06: gnu: Add python-flask-babel. |
Date: |
Sun, 6 Nov 2016 20:03:12 +0000 (UTC) |
mbakke pushed a commit to branch master
in repository guix.
commit 462bf27157d43a58e850dd596e3af169da152be1
Author: Danny Milosavljevic <address@hidden>
Date: Sat Nov 5 12:27:04 2016 +0100
gnu: Add python-flask-babel.
* gnu/packages/python.scm (python-flask-babel, python2-flask-babel):
New variables.
Signed-off-by: Marius Bakke <address@hidden>
---
gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1f7a2c0..25ca967 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3956,6 +3956,39 @@ multivalue dictionary that retains the order of
insertions and deletions.")
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+(define-public python-flask-babel
+ (package
+ (name "python-flask-babel")
+ (version "0.11.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Flask-Babel" version))
+ (sha256
+ (base32
+ "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-flask" ,python-flask)
+ ("python-babel" ,python-babel)
+ ("python-jinja2" ,python-jinja2)
+ ("python-pytz" ,python-pytz)))
+ (home-page "https://github.com/python-babel/flask-babel")
+ (synopsis "Add i18n/l10n support to Flask applications")
+ (description "This package implements internationalization and localization
+support for Flask. This is based on the Python babel module as well as pytz -
+both of which are installed automatically if you install this library.")
+ (license license:bsd-3)
+ (properties `((python2-variant . ,(delay python2-flask-babel))))))
+
+(define-public python2-flask-babel
+ (let ((base (package-with-python2 (strip-python2-variant
+ python-flask-babel))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
+
(define-public python-sqlalchemy-utils
(package
(name "python-sqlalchemy-utils")
- branch master updated (290ad22 -> 26d07ef), Marius Bakke, 2016/11/06
- 03/06: gnu: Add python-furl., Marius Bakke, 2016/11/06
- 06/06: gnu: python-sqlalchemy-utils: Use python-pytest., Marius Bakke, 2016/11/06
- 01/06: gnu: Add python-pycodestyle., Marius Bakke, 2016/11/06
- 05/06: gnu: python-sqlalchemy-utils: Propagate existing inputs., Marius Bakke, 2016/11/06
- 02/06: gnu: Add python-orderedmultidict., Marius Bakke, 2016/11/06
- 04/06: gnu: Add python-flask-babel.,
Marius Bakke <=