diff options
author | Jean-Paul Pelteret <jppelteret@gmail.com> | 2021-02-05 22:12:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 21:12:29 +0000 |
commit | a5440305173c218ec785b0d5a2dfa8b02bb0b731 (patch) | |
tree | 8733eb391a50f2b53c6bef2b3e0348fb6af3a832 /var | |
parent | c3206656bcbe9f1d634671c3ec9cbb3638c26bab (diff) | |
download | spack-a5440305173c218ec785b0d5a2dfa8b02bb0b731.tar.gz spack-a5440305173c218ec785b0d5a2dfa8b02bb0b731.tar.bz2 spack-a5440305173c218ec785b0d5a2dfa8b02bb0b731.tar.xz spack-a5440305173c218ec785b0d5a2dfa8b02bb0b731.zip |
Add package: py-fava (#21275)
* Add package: py-beancount-fava
* Rename package; fixes
* Fixes
* Cleanup; simplify regex used to ignore files
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-fava/package.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-fava/package.py b/var/spack/repos/builtin/packages/py-fava/package.py new file mode 100644 index 0000000000..86b4860f6b --- /dev/null +++ b/var/spack/repos/builtin/packages/py-fava/package.py @@ -0,0 +1,44 @@ +# Copyright 2013-2021 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 PyFava(PythonPackage): + """Fava is a web interface for the double-entry bookkeeping software + Beancount with a focus on features and usability.""" + + homepage = "https://beancount.github.io/fava/" + pypi = "fava/fava-1.18.tar.gz" + + version('1.18', sha256='21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5') + + # For some reason Fava adds a whole bunch of executables to + # its bin directory, and this causes clashes when loading + # the module. + extends('python', ignore='bin/^(?!fava).*') + + # Some of the dependencies are not listed as required at + # build or run time, but actually are. + # - py-setuptools + # - py-importlib + # - py-pytest + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type=('build', 'run')) + depends_on('py-setuptools-scm', type=('build')) + + depends_on('py-babel@2.6.0:', type=('build', 'run')) + depends_on('py-beancount@2.3.0:', type=('build', 'run')) + depends_on('py-cheroot', type=('build', 'run')) + depends_on('py-click', type=('build', 'run')) + depends_on('py-flask@0.10.1:', type=('build', 'run')) + depends_on('py-flask-babel@1.0.0:', type=('build', 'run')) + depends_on('py-importlib', type=('build', 'run')) + depends_on('py-jinja2@2.10:', type=('build', 'run')) + depends_on('py-markdown2@2.3.0:', type=('build', 'run')) + depends_on('py-ply', type=('build', 'run')) + depends_on('py-pytest', type=('build', 'run')) + depends_on('py-simplejson@3.2.0:', type=('build', 'run')) + depends_on('py-werkzeug@0.15.0:', type=('build', 'run')) |