summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-tensorflow-datasets/package.py
blob: d7c1a4f19acd5258100ff19e6f803f1760849d4b (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
# Copyright 2013-2023 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.package import *


class PyTensorflowDatasets(PythonPackage):
    """tensorflow/datasets is a library of datasets ready to use with
    TensorFlow."""

    homepage = "https://github.com/tensorflow/datasets"
    pypi = "tensorflow-datasets/tensorflow-datasets-4.4.0.tar.gz"

    license("Apache-2.0")

    version("4.4.0", sha256="3e95a61dec1fdb7b05dabc0dbed1b531e13d6c6fd362411423d0a775e5e9b960")

    depends_on("python@3.6:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-absl-py", type=("build", "run"))
    depends_on("py-attrs@18.1.0:", type=("build", "run"))
    depends_on("py-dill", type=("build", "run"))
    depends_on("py-future", type=("build", "run"))
    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-promise", type=("build", "run"))
    depends_on("py-protobuf@3.12.2:", type=("build", "run"))
    depends_on("py-requests@2.19.0:", type=("build", "run"))
    depends_on("py-six", type=("build", "run"))
    depends_on("py-tensorflow-metadata", type=("build", "run"))
    depends_on("py-termcolor", type=("build", "run"))
    depends_on("py-tqdm", type=("build", "run"))
    depends_on("py-typing-extensions", type=("build", "run"), when="^python@:3.7")
    depends_on("py-importlib-resources", type=("build", "run"), when="^python@:3.8")