summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNeil Flood <neilflood@fastmail.fm>2018-11-25 09:45:16 +1000
committerAdam J. Stewart <ajstewart426@gmail.com>2018-11-24 17:45:16 -0600
commite3e01ab3d73af68d6277d35882171cc08487eddd (patch)
tree5ca70aac959b6b2ec60a5e9a2e68660ce7453bd6 /var
parent058a772a52ddec6b6f94e5964bc63878ed3e44cd (diff)
downloadspack-e3e01ab3d73af68d6277d35882171cc08487eddd.tar.gz
spack-e3e01ab3d73af68d6277d35882171cc08487eddd.tar.bz2
spack-e3e01ab3d73af68d6277d35882171cc08487eddd.tar.xz
spack-e3e01ab3d73af68d6277d35882171cc08487eddd.zip
py-psycopg2: new package (#9926)
* py-psycopg2: new package * Added dependency on py-setuptools, as the build will use it if present
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-psycopg2/package.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-psycopg2/package.py b/var/spack/repos/builtin/packages/py-psycopg2/package.py
new file mode 100644
index 0000000000..0376ba8cbf
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-psycopg2/package.py
@@ -0,0 +1,18 @@
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyPsycopg2(PythonPackage):
+ """Python interface to PostgreSQL databases"""
+
+ homepage = "http://initd.org/psycopg/"
+ url = "http://initd.org/psycopg/tarballs/PSYCOPG-2-7/psycopg2-2.7.5.tar.gz"
+
+ version('2.7.5', '9e7d6f695fc7f8d1c42a7905449246c9')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('postgresql', type=('build', 'run'))