summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-inference-schema/package.py
blob: 52c509cdbce4509c86659b343d3669f7662d0a72 (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
# 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)


class PyInferenceSchema(PythonPackage):
    """This package is intended to provide a uniform schema for common machine
    learning applications, as well as a set of decorators that can be used to
    aid in web based ML prediction applications."""

    homepage = "https://pypi.org/project/inference-schema/"
    url      = "https://pypi.io/packages/py3/i/inference-schema/inference_schema-1.0.2-py3-none-any.whl"

    version('1.0.2', sha256='fd379becbd12dcf9f7a1ad5c03b163d501ef1dcc4fb85204735c84b1d139f478', expand=False)

    variant('numpy', default=False, description='Enable numpy support')
    variant('pandas', default=False, description='Enable pandas support')
    variant('pyspark', default=False, description='Enable pyspark support')

    depends_on('python@3:', type=('build', 'run'))
    depends_on('py-python-dateutil@2.5.3:', type=('build', 'run'))
    depends_on('py-pytz@2017.2:', type=('build', 'run'))
    depends_on('py-wrapt@1.11.1', type=('build', 'run'))
    depends_on('py-numpy@1.13.0:', when='+numpy', type=('build', 'run'))
    depends_on('py-pandas@0.20.2:', when='+pandas', type=('build', 'run'))
    depends_on('py-pyspark@2.3.2', when='+pyspark', type=('build', 'run'))