From b09d741aede8584d9537e64209b18a873e0297d1 Mon Sep 17 00:00:00 2001 From: Dani <44979434+d-beltran@users.noreply.github.com> Date: Mon, 29 Jan 2024 13:52:57 +0100 Subject: [PATCH] new builtin package: py-biobb-common (#41993) * new builtin package: biobb-common * removed whitespace for the style test * replaced ' by " for the style test * changed import line for the style test * Update var/spack/repos/builtin/packages/biobb-common/package.py Co-authored-by: Massimiliano Culpo * Update var/spack/repos/builtin/packages/biobb-common/package.py Co-authored-by: Massimiliano Culpo * Update var/spack/repos/builtin/packages/biobb-common/package.py Co-authored-by: Adam J. Stewart * removed test * using pypi instead of git I hope this is declared the right way. I tried to test it locally but I am having problems with a dependency (openblas) thus I can not even try if this works. * upgraded version * Added py prefix * removed biopython version restriction * directory with new py-prefixed name * Delete old non-prefixed package * Update var/spack/repos/builtin/packages/py-biobb-common/package.py Co-authored-by: Adam J. Stewart --------- Co-authored-by: Massimiliano Culpo Co-authored-by: Adam J. Stewart --- .../packages/py-biobb-common/package.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-biobb-common/package.py diff --git a/var/spack/repos/builtin/packages/py-biobb-common/package.py b/var/spack/repos/builtin/packages/py-biobb-common/package.py new file mode 100644 index 00000000000..64887f8d974 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-biobb-common/package.py @@ -0,0 +1,24 @@ +# 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 PyBiobbCommon(PythonPackage): + """Biobb_common is the base package required to use the biobb packages""" + + pypi = "biobb_common/biobb_common-4.1.0.tar.gz" + + maintainers("d-beltran") + + # Versions + version("4.1.0", sha256="97637f359a3bb8ad79aca72b6c26f73fe2424845dc7f43005643971046e9d117") + + # Dependencies + depends_on("py-setuptools", type="build") + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-pyyaml", type=("build", "run")) + depends_on("py-requests", type=("build", "run")) + depends_on("py-biopython", type=("build", "run"))