guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add python-psycopg2, python2-psycopg2


From: Danny Milosavljevic
Subject: [PATCH] gnu: Add python-psycopg2, python2-psycopg2
Date: Fri, 19 Feb 2016 12:01:06 +0100

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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]