all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH 4/6] gnu: Add python-flask-babel.
Date: Sat,  5 Nov 2016 12:27:04 +0100	[thread overview]
Message-ID: <20161105112706.12089-5-dannym@scratchpost.org> (raw)
In-Reply-To: <20161105112706.12089-1-dannym@scratchpost.org>

* gnu/packages/python.scm (python-flask-babel, python2-flask-babel):
  New variables.
---
 gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3eb33de..626007e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3931,6 +3931,39 @@ common URL manipulations proves tedious. Furl makes manipulating URLs easy.")
        `(("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 "http://github.com/python-babel/flask-babel")
+    (synopsis "Adds i18n/l10n support to Flask applications")
+    (description "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 for you 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")

  parent reply	other threads:[~2016-11-05 11:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-05 11:27 [PATCH 0/6] Provide some optional sqlalchemy utils Danny Milosavljevic
2016-11-05 11:27 ` [PATCH 1/6] gnu: Add python-pycodestyle Danny Milosavljevic
2016-11-05 15:39   ` Marius Bakke
2016-11-05 19:48   ` Efraim Flashner
2016-11-05 23:52     ` Danny Milosavljevic
2016-11-07 21:39     ` [PATCH] gnu: Replace python-pep8 by python-pycodestyle Danny Milosavljevic
2016-11-07 22:30       ` Leo Famulari
2016-11-07 22:40       ` Marius Bakke
2016-11-05 11:27 ` [PATCH 2/6] gnu: Add python-orderedmultidict Danny Milosavljevic
2016-11-05 15:42   ` Marius Bakke
2016-11-05 11:27 ` [PATCH 3/6] gnu: Add python-furl Danny Milosavljevic
2016-11-05 15:50   ` Marius Bakke
2016-11-05 11:27 ` Danny Milosavljevic [this message]
2016-11-05 15:51   ` [PATCH 4/6] gnu: Add python-flask-babel Marius Bakke
2016-11-05 11:27 ` [PATCH 5/6] gnu: Make python-sqlalchemy-utils's existing inputs propagated Danny Milosavljevic
2016-11-05 15:55   ` Marius Bakke
2016-11-05 11:27 ` [PATCH 6/6] gnu: Provide pytest to python-sqlalchemy-utils Danny Milosavljevic
2016-11-05 15:58   ` Marius Bakke
2016-11-05 19:13     ` Leo Famulari
2016-11-06 20:03 ` [PATCH 0/6] Provide some optional sqlalchemy utils Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161105112706.12089-5-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.