From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add python-psycopg2, python2-psycopg2 Date: Fri, 19 Feb 2016 12:01:06 +0100 Message-ID: <20160219120106.62631a44@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWioJ-0002cg-1q for guix-devel@gnu.org; Fri, 19 Feb 2016 06:01:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWioE-0006QM-2v for guix-devel@gnu.org; Fri, 19 Feb 2016 06:01:18 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:47066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWioD-0006QI-Se for guix-devel@gnu.org; Fri, 19 Feb 2016 06:01:14 -0500 Received: from localhost (91.141.2.51.wireless.dyn.drei.com [91.141.2.51]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 05B621CA0899 for ; Fri, 19 Feb 2016 12:01:10 +0100 (CET) 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 diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3dd3862..f121d27 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7529,3 +7529,32 @@ available in Django, but is a standalone package.") (inherit (package-with-python2 (strip-python2-variant python-wtforms))) (inputs `(("python2-setuptools" ,python2-setuptools))))) + +(define-public python-psycopg2 + (package + (name "python-psycopg2") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "psycopg2" version ".tar.gz")) + (sha256 + (base32 + "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; TODO re-enable + (inputs + `(("postgresql" ,postgresql))) ; libpq + (home-page "http://initd.org/psycopg/") + (synopsis "Python PostgreSQL adapter") + (description + "psycopg2 is a PostgreSQL adapter that implements DB-API 2.0") + (license lgpl3+) + (properties `((python2-variant . ,(delay python2-psycopg2)))))) + +(define-public python2-psycopg2 + (package + (inherit (package-with-python2 + (strip-python2-variant python-psycopg2))) + (inputs `(("python2-setuptools" ,python2-setuptools)))))