From 326acea29dbb077a31180c439db079bf5ea272ea Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:41:05 -0700 Subject: [PATCH] py-tern: new package (#27599) Signed-off-by: vsoch Co-authored-by: vsoch --- .../repos/builtin/packages/py-tern/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-tern/package.py diff --git a/var/spack/repos/builtin/packages/py-tern/package.py b/var/spack/repos/builtin/packages/py-tern/package.py new file mode 100644 index 0000000000..68758667a0 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-tern/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2021 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 import * + + +class PyTern(PythonPackage): + """ + Tern is a software package inspection tool that can create a Software Bill + of Materials (SBoM) for containers. + """ + + pypi = "tern/tern-2.8.0.tar.gz" + git = "https://github.com/tern-tools/tern.git" + + version('main', branch='main') + + depends_on('py-setuptools', type='build') + depends_on('py-wheel', type='build') + depends_on('py-pip', type='build')