py-pygresql: new package (#9922)

* py-pygresql: new package

* Added dependency on py-setuptools, as the build will use it if present
This commit is contained in:
Neil Flood 2018-11-25 09:45:27 +10:00 committed by Adam J. Stewart
parent e3e01ab3d7
commit 4c1733bff4

View File

@ -0,0 +1,19 @@
# 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 PyPygresql(PythonPackage):
"""PyGreSQL is an open-source Python module that interfaces to a
PostgreSQL database"""
homepage = "http://www.pygresql.org"
url = "http://www.pygresql.org/files/PyGreSQL-5.0.5.tar.gz"
version('5.0.5', 'c7d1558e85568d3369a98609174ca6a0')
depends_on('py-setuptools', type='build')
depends_on('postgresql', type=('build', 'run'))