summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-contourpy/package.py
blob: bb553e782bb702c4a613f984d8a3f8d950b99271 (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
# 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 PyContourpy(PythonPackage):
    """Python library for calculating contours of 2D quadrilateral grids."""

    homepage = "https://github.com/contourpy/contourpy"
    pypi = "contourpy/contourpy-1.0.5.tar.gz"

    license("BSD-3-Clause")

    version("1.0.7", sha256="d8165a088d31798b59e91117d1f5fc3df8168d8b48c4acc10fc0df0d0bdbcc5e")
    version("1.0.5", sha256="896631cd40222aef3697e4e51177d14c3709fda49d30983269d584f034acc8a4")

    depends_on("python@3.8:", when="@1.0.7:", type=("build", "link", "run"))
    depends_on("python@3.7:", type=("build", "link", "run"))
    depends_on("py-pybind11@2.6:", type=("build", "link"))
    depends_on("py-setuptools@42:", type="build")
    depends_on("py-numpy@1.16:", type=("build", "run"))

    depends_on("py-build", when="@:1.0.5", type="build")