summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-damask/package.py
blob: 3210c9e2efd8f194a217d70c544e9d17837d90fb (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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 PyDamask(PythonPackage):
    """Pre- and post-processing tools for DAMASK"""

    homepage = "https://damask.mpie.de"
    url = "https://damask.mpie.de/download/damask-3.0.0.tar.xz"

    maintainers("MarDiehl")

    license("AGPL-3.0-only")

    version(
        "3.0.0-alpha8", sha256="f62c38123213d1c1fe2eb8910b0ffbdc1cac56273c2520f3b64a553363190b9d"
    )
    version(
        "3.0.0-alpha7", sha256="442b06b824441293e72ff91b211a555c5d497aedf62be1c4332c426558b848a4"
    )
    version(
        "3.0.0-alpha6", sha256="de6748c285558dec8f730c4301bfa56b4078c130ff80e3095faf76202f8d2109"
    )
    version(
        "3.0.0-alpha5", sha256="2d2b10901959c26a5bb5c52327cdafc7943bc1b36b77b515b0371221703249ae"
    )
    version(
        "3.0.0-alpha4", sha256="0bb8bde43b27d852b1fb6e359a7157354544557ad83d87987b03f5d629ce5493"
    )

    depends_on("py-pandas@0.24:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("py-numpy@1.17:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("py-scipy@1.2:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("py-h5py@2.9:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("vtk+python@8.1:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("py-matplotlib@3.0:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("py-pyyaml@3.12:", type=("build", "run"), when="@3.0.0-alpha8:")
    depends_on("python@3.8:", type=("build", "run"), when="@3.0.0-alpha6:")
    depends_on("python@3.7:", type=("build", "run"))
    depends_on("py-setuptools@40.6:", type="build")
    depends_on("vtk+python", type=("build", "run"))
    depends_on("py-pandas", type=("build", "run"))
    depends_on("py-scipy", type=("build", "run"))
    depends_on("py-h5py", type=("build", "run"))
    depends_on("py-matplotlib", type=("build", "run"))
    depends_on("py-pyyaml", type=("build", "run"))

    patch("setup.patch", when="@3.0.0-alpha7")

    build_directory = "python"