# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack_repo.builtin_mock.build_systems.generic import Package

from spack.package import *


class DependentOfDevBuild(Package):
    homepage = "example.com"
    url = "fake.com"

    version("0.0.0", sha256="0123456789abcdef0123456789abcdef")

    depends_on("dev-build-test-install")

    def install(self, spec, prefix):
        with open(prefix.filename, "w", encoding="utf-8") as f:
            f.write("This file is installed")
