From f0e49a54c063cf7fbda20cdb69d1a7c2aff5bbe4 Mon Sep 17 00:00:00 2001 From: Dani <44979434+d-beltran@users.noreply.github.com> Date: Sun, 11 Feb 2024 19:56:31 +0100 Subject: [PATCH] new builtin package: py-simpletraj (#42460) * new builtin package: py-simpletraj * long line splitted in two for the style test * removed trailing whitespace for the style test --- .../builtin/packages/py-simpletraj/package.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-simpletraj/package.py diff --git a/var/spack/repos/builtin/packages/py-simpletraj/package.py b/var/spack/repos/builtin/packages/py-simpletraj/package.py new file mode 100644 index 0000000000..8a9310196a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-simpletraj/package.py @@ -0,0 +1,23 @@ +# 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 PySimpletraj(PythonPackage): + """Lightweight coordinate-only trajectory reader based on code + from GROMACS, MDAnalysis and VMD.""" + + pypi = "simpletraj/simpletraj-0.5.tar.gz" + + maintainers("d-beltran") + + # Versions + version("0.5", sha256="860ccba82e7a6085ef1cbff74eb2db53df65fd58edabae3c45b8c45a219b8a3b") + + # Dependencies + depends_on("py-setuptools", type="build") + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-numpy", type=("build", "run"))