diff options
author | Sinan <sbulutw@gmail.com> | 2022-11-02 21:38:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 22:38:17 -0600 |
commit | 2264b75ca0ffceabb55e0306e76260dc4f5f1360 (patch) | |
tree | 01aa8db2c0152ea4b669aa81edcec2939404ed15 | |
parent | c716c6ca95e300ac247f668237fc13f75e1b5289 (diff) | |
download | spack-2264b75ca0ffceabb55e0306e76260dc4f5f1360.tar.gz spack-2264b75ca0ffceabb55e0306e76260dc4f5f1360.tar.bz2 spack-2264b75ca0ffceabb55e0306e76260dc4f5f1360.tar.xz spack-2264b75ca0ffceabb55e0306e76260dc4f5f1360.zip |
add new package: py-pylatex (#33573)
* add new package: py-pylatex
* fix bugs
* add extras indicated in setup.py
* Update var/spack/repos/builtin/packages/py-pylatex/package.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Update var/spack/repos/builtin/packages/py-pylatex/package.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* improvements
* remove git merge related lines
* tidy
* Update var/spack/repos/builtin/packages/py-pylatex/package.py
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* remove variant
* [@spackbot] updating style on behalf of Sinan81
Co-authored-by: sbulut <sbulut@3vgeomatics.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Co-authored-by: Sinan81 <Sinan81@users.noreply.github.com>
-rw-r--r-- | var/spack/repos/builtin/packages/py-pylatex/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pylatex/package.py b/var/spack/repos/builtin/packages/py-pylatex/package.py new file mode 100644 index 0000000000..c55cf6c870 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pylatex/package.py @@ -0,0 +1,35 @@ +# Copyright 2013-2022 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 PyPylatex(PythonPackage): + """A Python library for creating LaTeX files and snippets""" + + homepage = "https://github.com/JelteF/PyLaTeX" + pypi = "PyLaTeX/PyLaTeX-1.4.1.tar.gz" + + version("1.4.1", sha256="d3c12efb8b260771260443dce78d1e9089c09f9d0b92e6273dfca0bf5e7302fb") + + variant("docs", default=False, description="Build with Sphinx support for documentation") + variant("matrices", default=False, description="Build with matrix support") + variant("matplotlib", default=False, description="Build with matplotlib support") + variant("quantities", default=False, description="Build with quantities support") + + depends_on("python@2.7,3.3:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-setuptools@:57", type="build", when="@:1.4.1") + depends_on("py-ordered-set", type=("build", "run")) + + # from extras section in setup.py + depends_on("py-future@0.15.2:", type=("build", "run"), when="^python@:2") + depends_on("py-sphinx", type="run", when="+docs") + depends_on("py-matplotlib", type="run", when="+matplotlib") + depends_on("py-numpy", type="run", when="+matrices") + depends_on("py-numpy", type="run", when="+quantities") + depends_on("py-quantities", type="run", when="+quantities") + + depends_on("texlive", type="run") |