mdb: Add new package with dependencies (#46800)
* update package py-pexpect * add py-termgraph package * add py-sphinx-click package * add mdb package * add py-sphinx-click maintainer * add py-termgraph maintainer * add py-pexpect license and maintainer
This commit is contained in:
parent
adfb3a77ad
commit
f5135018dd
51
var/spack/repos/builtin/packages/mdb/package.py
Normal file
51
var/spack/repos/builtin/packages/mdb/package.py
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright 2013-2024 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.package import *
|
||||
|
||||
|
||||
class Mdb(PythonPackage):
|
||||
"""mdb is a command line debugger aimed at parallel programs using the MPI
|
||||
programming paradigm."""
|
||||
|
||||
homepage = "https://mdb.readthedocs.io/en/latest"
|
||||
pypi = "mdb_debugger/mdb_debugger-1.0.3.tar.gz"
|
||||
|
||||
maintainers("tommelt")
|
||||
|
||||
license("MIT", checked_by="tommelt")
|
||||
|
||||
version("1.0.3", sha256="c45cffb320a51274519753b950b7b72cd91a8a5804941556120ed41bb8b491d8")
|
||||
|
||||
depends_on("python@3.10: +tkinter", type=("build", "run"))
|
||||
depends_on("py-pip", type=("build", "run"))
|
||||
depends_on("py-setuptools", type="build")
|
||||
|
||||
depends_on("py-click@8.1.7", type=("build", "run"))
|
||||
depends_on("py-pexpect@4.9:", type=("build", "run"))
|
||||
depends_on("py-typing-extensions", type=("build", "run"))
|
||||
depends_on("py-matplotlib@3.8.3 backend=qt5agg", type=("build", "run"))
|
||||
depends_on("py-pyqt5", type=("build", "run"))
|
||||
|
||||
depends_on("mpi", type=("run"))
|
||||
|
||||
variant("manpage", default=False, description="build and install manpage")
|
||||
variant("termgraph", default=True, description="build with termgraph support")
|
||||
|
||||
with when("+termgraph"):
|
||||
depends_on("py-termgraph", type=("build", "run"))
|
||||
|
||||
with when("+manpage"):
|
||||
depends_on("py-sphinx", type=("build"))
|
||||
depends_on("py-sphinx-rtd-theme", type=("build"))
|
||||
depends_on("py-sphinx-click", type=("build"))
|
||||
|
||||
@run_after("install")
|
||||
def build_docs(self):
|
||||
if self.spec.satisfies("+manpage"):
|
||||
make("-C", "docs", "man")
|
||||
|
||||
mkdirp(prefix.share.man.man1)
|
||||
copy("docs/build/man/mdb.1", prefix.share.man.man1)
|
@ -9,8 +9,14 @@
|
||||
class PyPexpect(PythonPackage):
|
||||
"""Pexpect allows easy control of interactive console applications."""
|
||||
|
||||
homepage = "https://pexpect.readthedocs.io/en/stable/"
|
||||
pypi = "pexpect/pexpect-4.2.1.tar.gz"
|
||||
|
||||
maintainers("TomMelt")
|
||||
|
||||
license("ISC", checked_by="tommelt")
|
||||
|
||||
version("4.9.0", sha256="ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f")
|
||||
version("4.8.0", sha256="fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c")
|
||||
version("4.7.0", sha256="9e2c1fd0e6ee3a49b28f95d4b33bc389c89b20af6a1255906e90ff1262ce62eb")
|
||||
version("4.6.0", sha256="2a8e88259839571d1251d278476f3eec5db26deb73a70be5ed5dc5435e418aba")
|
||||
|
27
var/spack/repos/builtin/packages/py-sphinx-click/package.py
Normal file
27
var/spack/repos/builtin/packages/py-sphinx-click/package.py
Normal file
@ -0,0 +1,27 @@
|
||||
# Copyright 2013-2024 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.package import *
|
||||
|
||||
|
||||
class PySphinxClick(PythonPackage):
|
||||
"""Sphinx plugin that allows you to automatically extract documentation
|
||||
from a Click-based application and include it in your docs"""
|
||||
|
||||
homepage = "https://sphinx-click.readthedocs.io/en/latest"
|
||||
pypi = "sphinx_click/sphinx_click-6.0.0.tar.gz"
|
||||
|
||||
maintainers("TomMelt")
|
||||
|
||||
license("MIT", checked_by="tommelt")
|
||||
|
||||
version("6.0.0", sha256="f5d664321dc0c6622ff019f1e1c84e58ce0cecfddeb510e004cf60c2a3ab465b")
|
||||
|
||||
depends_on("py-setuptools", type="build")
|
||||
|
||||
depends_on("py-click@8:", type=("build", "run"))
|
||||
depends_on("py-sphinx@4:", type=("build", "run"))
|
||||
depends_on("py-docutils", type=("build", "run"))
|
||||
depends_on("py-pbr", type=("build", "run"))
|
23
var/spack/repos/builtin/packages/py-termgraph/package.py
Normal file
23
var/spack/repos/builtin/packages/py-termgraph/package.py
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2013-2024 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.package import *
|
||||
|
||||
|
||||
class PyTermgraph(PythonPackage):
|
||||
"""Command-line tool that draws basic graphs in the terminal, written in
|
||||
Python."""
|
||||
|
||||
homepage = "https://github.com/mkaz/termgraph"
|
||||
pypi = "termgraph/termgraph-0.5.3.tar.gz"
|
||||
|
||||
maintainers("TomMelt")
|
||||
|
||||
license("MIT", checked_by="tommelt")
|
||||
|
||||
version("0.5.3", sha256="36ff2098e41eeab1e7cdda7366dc3e5b514ea799fa3e77537564492a7edefdd5")
|
||||
|
||||
depends_on("py-setuptools", type="build")
|
||||
depends_on("py-colorama", type=("build", "run"))
|
Loading…
Reference in New Issue
Block a user