py-psycopg2: new package (#9926)
* py-psycopg2: new package * Added dependency on py-setuptools, as the build will use it if present
This commit is contained in:
parent
058a772a52
commit
e3e01ab3d7
18
var/spack/repos/builtin/packages/py-psycopg2/package.py
Normal file
18
var/spack/repos/builtin/packages/py-psycopg2/package.py
Normal file
@ -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'))
|
Loading…
Reference in New Issue
Block a user