From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: [PATCH 03/13] gnu: Add python-sqlalchemy. Date: Thu, 20 Nov 2014 23:40:58 -0600 Message-ID: <1416548468-28421-4-git-send-email-bavier@member.fsf.org> References: <1416548468-28421-1-git-send-email-bavier@member.fsf.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrgxi-0000ZP-Im for guix-devel@gnu.org; Fri, 21 Nov 2014 00:40:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xrgxd-00025E-VX for guix-devel@gnu.org; Fri, 21 Nov 2014 00:40:54 -0500 Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]:37037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrgxd-000259-Qg for guix-devel@gnu.org; Fri, 21 Nov 2014 00:40:49 -0500 Received: by mail-ig0-f177.google.com with SMTP id uq10so4127147igb.10 for ; Thu, 20 Nov 2014 21:40:49 -0800 (PST) In-Reply-To: <1416548468-28421-1-git-send-email-bavier@member.fsf.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: Eric Bavier * gnu/packages/python.scm (python-sqlalchemy, python2-sqlalchemy): New variables. --- gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 229e140..6238e4f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1879,3 +1879,38 @@ writing C extensions for Python as easy as Python itself.") (name "python2-cython") (inputs `(("python-2" ,python-2))))) ; this is not automatically changed + +(define-public python-sqlalchemy + (package + (name "python-sqlalchemy") + (version "0.9.7") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/S/" + "SQLAlchemy/SQLAlchemy-" version ".tar.gz")) + (sha256 + (base32 + "059ayifj5l08v6vv56anhyibyllscn10dlzr2fcw68gz1hfjdzsz")))) + (build-system python-build-system) + (native-inputs + `(("python-cython" ,python-cython) ;for c extensions + ("python-pytest" ,python-pytest) + ("python-mock" ,python-mock))) ;for tests + (arguments + `(#:phases (alist-replace + 'check + (lambda _ (zero? (system* "py.test"))) + %standard-phases))) + (home-page "http://www.sqlalchemy.org") + (synopsis "Database Abstraction Library") + (description + "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that +gives application developers the full power and flexibility of SQL. It +provides a full suite of well known enterprise-level persistence patterns, +designed for efficient and high-performing database access, adapted into a +simple and Pythonic domain language.") + (license x11))) + +(define-public python2-sqlalchemy + (package-with-python2 python-sqlalchemy)) -- 1.7.9.5