summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-psycopg2/package.py
blob: 0483c794afb30af1b23a51ed3ae179278f3b6b7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2013-2019 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', sha256='eccf962d41ca46e6326b97c8fe0a6687b58dfc1a5f6540ed071ff1474cea749e')

    depends_on('py-setuptools', type='build')
    depends_on('postgresql', type=('build', 'run'))