diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2021-06-01 03:00:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 10:00:35 +0200 |
commit | c596dba0395b6242c6362140341f46f57a363712 (patch) | |
tree | 96d20de70500962c76f21af2a93ec52e1dfc28f3 /var | |
parent | 26e1a8287f970dc7ea0fc99568e4158d76c1fca7 (diff) | |
download | spack-c596dba0395b6242c6362140341f46f57a363712.tar.gz spack-c596dba0395b6242c6362140341f46f57a363712.tar.bz2 spack-c596dba0395b6242c6362140341f46f57a363712.tar.xz spack-c596dba0395b6242c6362140341f46f57a363712.zip |
py-psycopg2: need link dep on postgresql (#24016)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-psycopg2/package.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/py-psycopg2/package.py b/var/spack/repos/builtin/packages/py-psycopg2/package.py index 5f67ad7cae..065f77a502 100644 --- a/var/spack/repos/builtin/packages/py-psycopg2/package.py +++ b/var/spack/repos/builtin/packages/py-psycopg2/package.py @@ -9,13 +9,14 @@ 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" + homepage = "https://psycopg.org/" + pypi = "psycopg2/psycopg2-2.8.6.tar.gz" version('2.8.6', sha256='fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543') version('2.7.5', sha256='eccf962d41ca46e6326b97c8fe0a6687b58dfc1a5f6540ed071ff1474cea749e') - depends_on('python@2.7:2.8,3.4:3.8', type=('build', 'run'), when='@2.8:') - depends_on('python@2.6:2.8,3.2:3.7', type=('build', 'run'), when='@2.7') + # https://www.psycopg.org/docs/install.html#prerequisites + depends_on('python@2.7:2.8,3.4:3.8', type=('build', 'link', 'run'), when='@2.8:') + depends_on('python@2.6:2.8,3.2:3.7', type=('build', 'link', 'run'), when='@2.7') depends_on('py-setuptools', type='build') - depends_on('postgresql', type=('build', 'run')) + depends_on('postgresql@9.1:12', type=('build', 'link', 'run')) |