summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-mpld3/package.py
blob: e4057cfd3cb864b1926af5b0b11976b2e373e7c5 (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-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)

from spack.package import *


class PyMpld3(PythonPackage):
    """An interactive D3js-based viewer which brings matplotlib graphics
    to the browser."""

    homepage = "https://mpld3.github.io/"
    pypi = "mpld3/mpld3-0.3.tar.gz"

    version("0.5.5", sha256="b080f3535238a71024c0158280ab4f6091717c45347c41c907012f8dd6da1bd5")
    version("0.3", sha256="4d455884a211bf99b37ecc760759435c7bb6a5955de47d8daf4967e301878ab7")

    depends_on("python@2.6:2.8,3.3:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-matplotlib@1.3:", type=("build", "run"))
    depends_on("py-matplotlib@2.2.2:", type=("build", "run"), when="@0.5.5:")
    depends_on("py-jinja2@2.7:", type=("build", "run"))