summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pybtex/package.py
blob: fd0bac735a412ff96ead081dff2348b371db74b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2013-2018 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 PyPybtex(PythonPackage):
    """Pybtex is a BibTeX-compatible bibliography processor written in
       Python."""

    homepage = "https://pybtex.org"
    url      = "https://pypi.io/packages/source/P/Pybtex/pybtex-0.21.tar.gz"

    import_modules = [
        'custom_fixers', 'pybtex', 'pybtex.style', 'pybtex.tests',
        'pybtex.database', 'pybtex.backends', 'pybtex.bibtex',
        'pybtex.charwidths', 'pybtex.markup', 'pybtex.plugin',
        'pybtex.style.sorting', 'pybtex.style.names',
        'pybtex.style.labels', 'pybtex.style.formatting',
        'pybtex.tests.database_test', 'pybtex.tests.bst_parser_test',
        'pybtex.tests.data', 'pybtex.database.output',
        'pybtex.database.input', 'pybtex.database.format',
        'pybtex.database.convert'
    ]

    version('0.21', 'e7b320b2bcb34c664c4385533a2ea831')

    depends_on('py-setuptools', type='build')
    depends_on('py-latexcodec@1.0.4:', type=('build', 'run'))
    depends_on('py-pyyaml@3.01:', type=('build', 'run'))
    # This dependency breaks concretization
    # See https://github.com/spack/spack/issues/2793
    # depends_on('py-counter@1:', when='^python@:2.6', type=('build', 'run'))