diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2020-03-29 17:22:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 17:22:24 -0500 |
commit | 4287d2290c581b907b08efabc1e6bccea4019ac6 (patch) | |
tree | 6c09db99d95c237712d9a22a1bbc03e5177dedfc | |
parent | df4e89770a0462275628b0a1239f5976ea598d9d (diff) | |
download | spack-4287d2290c581b907b08efabc1e6bccea4019ac6.tar.gz spack-4287d2290c581b907b08efabc1e6bccea4019ac6.tar.bz2 spack-4287d2290c581b907b08efabc1e6bccea4019ac6.tar.xz spack-4287d2290c581b907b08efabc1e6bccea4019ac6.zip |
py-pyface: add new package (#15743)
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyface/package.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyface/package.py b/var/spack/repos/builtin/packages/py-pyface/package.py new file mode 100644 index 0000000000..197e3d9ab2 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyface/package.py @@ -0,0 +1,33 @@ +# Copyright 2013-2020 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) + + +class PyPyface(PythonPackage): + """The pyface project contains a toolkit-independent GUI abstraction layer, + which is used to support the "visualization" features of the Traits + package. Thus, you can write code in terms of the Traits API (views, items, + editors, etc.), and let pyface and your selected toolkit and back-end take + care of the details of displaying them.""" + + homepage = "https://docs.enthought.com/pyface" + url = "https://pypi.io/packages/source/p/pyface/pyface-6.1.2.tar.gz" + + version('6.1.2', sha256='7c2ac3d5cbec85e8504b3b0b63e9307be12c6d710b46bae372ce6562d41f4fbc') + + variant('backend', default='pyqt5', description='Default backend', + values=('wx', 'pyqt', 'pyqt5', 'pyside'), multi=False) + + depends_on('py-setuptools', type='build') + depends_on('py-traits', type=('build', 'run')) + + # Backends + depends_on('py-wxpython@2.8.10:', when='backend=wx', type=('build', 'run')) + depends_on('py-numpy', when='backend=wx', type=('build', 'run')) + depends_on('py-pyqt4@4.10:', when='backend=pyqt', type=('build', 'run')) + depends_on('py-pygments', when='backend=pyqt', type=('build', 'run')) + depends_on('py-pyqt5@5:', when='backend=pyqt5', type=('build', 'run')) + depends_on('py-pygments', when='backend=pyqt5', type=('build', 'run')) + depends_on('py-pyside@1.2:', when='backend=pyside', type=('build', 'run')) + depends_on('py-pygments', when='backend=pyside', type=('build', 'run')) |