# Copyright 2013-2024 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 Routinator(Package): """An RPKI Validator and RTR server written in Rust""" homepage = "https://nlnetlabs.nl/projects/rpki/about/" url = "https://github.com/NLnetLabs/routinator/archive/refs/tags/v0.11.2.tar.gz" maintainers("aweits") license("BSD-3-Clause") version("0.12.1", sha256="8150fe544f89205bb2d65bca46388f055cf13971d3163fe17508bf231f9ab8bc") version( "0.11.2", sha256="00f825c53168592da0285e8dbd228018e77248d458214a2c0f86cd0ca45438f5", deprecated=True, ) depends_on("rust@1.56:", when="@0.11.2") depends_on("rust@1.63:", when="@0.12.1") def install(self, spec, prefix): cargo = which("cargo") cargo("install", "--root", prefix, "--path", ".")