unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-psycopg2, python2-psycopg2
@ 2016-02-19 11:01 Danny Milosavljevic
  2016-02-19 21:22 ` Leo Famulari
  0 siblings, 1 reply; 16+ messages in thread
From: Danny Milosavljevic @ 2016-02-19 11:01 UTC (permalink / raw)
  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)))))

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-02-25 23:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-19 11:01 [PATCH] gnu: Add python-psycopg2, python2-psycopg2 Danny Milosavljevic
2016-02-19 21:22 ` Leo Famulari
2016-02-22  0:39   ` Danny Milosavljevic
2016-02-22  2:38     ` Christopher Allan Webber
2016-02-24 22:39       ` [PATCH v2] " Danny Milosavljevic
2016-02-25  0:05         ` Christopher Allan Webber
2016-02-25  0:52           ` [PATCH v3] " Danny Milosavljevic
2016-02-25 17:53             ` Christopher Allan Webber
2016-02-25 19:30               ` Leo Famulari
2016-02-25 21:28                 ` Christopher Allan Webber
2016-02-25 21:35                   ` Leo Famulari
2016-02-25 22:22               ` Danny Milosavljevic
2016-02-25 22:45                 ` Christopher Allan Webber
2016-02-25 23:13                   ` Leo Famulari
2016-02-25 23:52                     ` Christopher Allan Webber
2016-02-22  2:39     ` [PATCH] " Christopher Allan Webber

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).