From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH 4/6] gnu: Add python-flask-babel. Date: Sat, 5 Nov 2016 12:27:04 +0100 Message-ID: <20161105112706.12089-5-dannym@scratchpost.org> References: <20161105112706.12089-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2z84-0001vN-Cv for guix-devel@gnu.org; Sat, 05 Nov 2016 07:27:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2z83-0006Fe-Cb for guix-devel@gnu.org; Sat, 05 Nov 2016 07:27:20 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:39677) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2z83-0006Ec-7U for guix-devel@gnu.org; Sat, 05 Nov 2016 07:27:19 -0400 In-Reply-To: <20161105112706.12089-1-dannym@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.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")