diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2022-02-02 00:56:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 23:56:09 -0700 |
commit | 3b5afef842a4dd9b027c2cf187afabd4998bab70 (patch) | |
tree | ae2a0e86f5696c82b4c0aa5f7a5fa57b9e45e6fa /var | |
parent | b9bb303063299ba512a19168d1635172edb0e944 (diff) | |
download | spack-3b5afef842a4dd9b027c2cf187afabd4998bab70.tar.gz spack-3b5afef842a4dd9b027c2cf187afabd4998bab70.tar.bz2 spack-3b5afef842a4dd9b027c2cf187afabd4998bab70.tar.xz spack-3b5afef842a4dd9b027c2cf187afabd4998bab70.zip |
new packages: py-rst2pdf and py-smartypants (#28697)
* new packages: py-rst2pdf and py-smartypants
The py-smartypants package is a dependency of py-rst2pdf.
* add missing dependencies
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-rst2pdf/package.py | 31 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-smartypants/package.py | 19 |
2 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-rst2pdf/package.py b/var/spack/repos/builtin/packages/py-rst2pdf/package.py new file mode 100644 index 0000000000..50dd6ceacb --- /dev/null +++ b/var/spack/repos/builtin/packages/py-rst2pdf/package.py @@ -0,0 +1,31 @@ +# 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 import * + + +class PyRst2pdf(PythonPackage): + """Convert reStructured Text to PDF via ReportLab. + + The usual way of creating PDF from reStructuredText is by going through + LaTeX. This tool provides an alternative by producing PDF directly using + the ReportLab library.""" + + homepage = "https://rst2pdf.org/" + pypi = "rst2pdf/rst2pdf-0.99.tar.gz" + + version('0.99', sha256='8fa23fa93bddd1f52d058ceaeab6582c145546d80f2f8a95974f3703bd6c8152') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-setuptools-scm', type='build') + depends_on('py-docutils', type=('build', 'run')) + depends_on('py-importlib-metadata', type=('build', 'run')) + depends_on('py-jinja2', type=('build', 'run')) + depends_on('py-packaging', type=('build', 'run')) + depends_on('py-pygments', type=('build', 'run')) + depends_on('py-pyyaml', type=('build', 'run')) + depends_on('py-reportlab', type=('build', 'run')) + depends_on('py-smartypants', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-smartypants/package.py b/var/spack/repos/builtin/packages/py-smartypants/package.py new file mode 100644 index 0000000000..d27a264a78 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-smartypants/package.py @@ -0,0 +1,19 @@ +# 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 import * + + +class PySmartypants(PythonPackage): + """smartypants is a Python fork of SmartyPants.""" + + homepage = "https://github.com/leohemsted/smartypants.py" + + # PyPI only has the wheel + url = "https://github.com/leohemsted/smartypants.py/archive/refs/tags/v2.0.1.tar.gz" + + version('2.0.1', sha256='b98191911ff3b4144ef8ad53e776a2d0ad24bd508a905c6ce523597c40022773') + + depends_on('py-setuptools', type='build') |