[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)))))
- [PATCH] gnu: Add python-psycopg2, python2-psycopg2,
Danny Milosavljevic <=
- Re: [PATCH] gnu: Add python-psycopg2, python2-psycopg2, Leo Famulari, 2016/02/19
- Re: [PATCH] gnu: Add python-psycopg2, python2-psycopg2, Danny Milosavljevic, 2016/02/21
- Re: [PATCH] gnu: Add python-psycopg2, python2-psycopg2, Christopher Allan Webber, 2016/02/21
- [PATCH v2] gnu: Add python-psycopg2, python2-psycopg2, Danny Milosavljevic, 2016/02/24
- Re: [PATCH v2] gnu: Add python-psycopg2, python2-psycopg2, Christopher Allan Webber, 2016/02/24
- [PATCH v3] gnu: Add python-psycopg2, python2-psycopg2, Danny Milosavljevic, 2016/02/24
- Re: [PATCH v3] gnu: Add python-psycopg2, python2-psycopg2, Christopher Allan Webber, 2016/02/25
- Re: [PATCH v3] gnu: Add python-psycopg2, python2-psycopg2, Leo Famulari, 2016/02/25
- Re: [PATCH v3] gnu: Add python-psycopg2, python2-psycopg2, Christopher Allan Webber, 2016/02/25
- Re: [PATCH v3] gnu: Add python-psycopg2, python2-psycopg2, Leo Famulari, 2016/02/25