unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel <guix-devel@gnu.org>
Subject: [PATCH] gnu: Add python-psycopg2, python2-psycopg2
Date: Fri, 19 Feb 2016 12:01:06 +0100	[thread overview]
Message-ID: <20160219120106.62631a44@scratchpost.org> (raw)

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	other threads:[~2016-02-19 11:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-19 11:01 Danny Milosavljevic [this message]
2016-02-19 21:22 ` [PATCH] gnu: Add python-psycopg2, python2-psycopg2 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160219120106.62631a44@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).