summaryrefslogtreecommitdiff
path: root/share/spack/templates/mock-repository/package.pyt
blob: a4a52ec700c62e2786ce2cd7a66138966109a6be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from spack.package import *

class {{ cls_name }}(Package):
    homepage = "http://www.example.com"
    url = "http://www.example.com/root-1.0.tar.gz"

    version("3.0", sha256='abcde')
    version("2.0", sha256='abcde')
    version("1.0", sha256='abcde')

{% for dep_spec, dep_type, condition in dependencies %}
{% if dep_type and condition %}
    depends_on("{{ dep_spec }}", type="{{ dep_type }}", when="{{ condition }}")
{% elif dep_type %}
    depends_on("{{ dep_spec }}", type="{{ dep_type }}")
{% elif condition %}
    depends_on("{{ dep_spec }}", when="{{ condition }}")
{% else %}
    depends_on("{{ dep_spec }}")
{% endif %}
{% endfor %}