summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-brotlipy/package.py
blob: 42d0e435e7130bea6b2f71e6073544fe2c86d941 (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
# 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 PyBrotlipy(PythonPackage):
    """Python binding to the Brotli library."""

    homepage = "https://github.com/python-hyper/brotlipy/"
    pypi = "brotlipy/brotlipy-0.7.0.tar.gz"

    version('0.7.0', sha256='36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df')

    depends_on('py-setuptools', type='build')
    depends_on('py-cffi@1.0.0:', type=('build', 'run'))
    depends_on('py-enum34@1.0.4:1', when='^python@:3.3', type=('build', 'run'))

    # TODO: Builds against internal copy of headers, doesn't seem to be a way
    # to use external brotli installation
    # depends_on('brotli')