From d25f1059dd073f2777ac5043b43dab85b0e25a8e Mon Sep 17 00:00:00 2001 From: mschouler Date: Mon, 31 Jul 2023 19:39:56 +0200 Subject: py-python-hostlist: package addition (#39035) * Add recipe for py-hostlist * Fix style * Fix style * Add homepage, fix version url and remove unnecessary dependency * Fix version and remove url * Rename package and fix git link --------- Co-authored-by: Marc Schouler --- .../builtin/packages/py-python-hostlist/package.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-python-hostlist/package.py diff --git a/var/spack/repos/builtin/packages/py-python-hostlist/package.py b/var/spack/repos/builtin/packages/py-python-hostlist/package.py new file mode 100644 index 0000000000..3cd58dd781 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-hostlist/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2023 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 PyPythonHostlist(PythonPackage): + """The hostlist.py module knows how to expand and collect hostlist expressions.""" + + homepage = "https://www.nsc.liu.se/~kent/python-hostlist/" + pypi = "python-hostlist/python-hostlist-1.23.0.tar.gz" + git = "git://www.nsc.liu.se/~kent/python-hostlist.git" + + version("master", branch="master") + version("1.23.0", sha256="56e0156b501f792c078114f07324f34f37827041581ee5d1ffdce89cca533219") + + # build dependencies + depends_on("py-setuptools", type=("build")) -- cgit v1.2.3-60-g2f50