From 772928241b2e721724cbaa4a3a07a6ce0753c0e7 Mon Sep 17 00:00:00 2001 From: jmlapre <110123055+jmlapre@users.noreply.github.com> Date: Fri, 8 Mar 2024 07:45:25 -0500 Subject: [PATCH] py-cheap-repr: new package (#42944) * py_cheap_repr: add initial package.py * Update var/spack/repos/builtin/packages/py-cheap-repr/package.py Co-authored-by: Adam J. Stewart * py-cheap-repr: use pypi link instead --------- Co-authored-by: Adam J. Stewart --- .../builtin/packages/py-cheap-repr/package.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-cheap-repr/package.py diff --git a/var/spack/repos/builtin/packages/py-cheap-repr/package.py b/var/spack/repos/builtin/packages/py-cheap-repr/package.py new file mode 100644 index 0000000000..6b33e9734e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-cheap-repr/package.py @@ -0,0 +1,20 @@ +# 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 PyCheapRepr(PythonPackage): + """This library provides short, fast, configurable string representations, + and an easy API for registering your own. It's an improvement of the + standard library module reprlib (repr in Python 2).""" + + pypi = "cheap-repr/cheap_repr-0.5.1.tar.gz" + + license("MIT", checked_by="jmlapre") + + version("0.5.1", sha256="31ec63b9d8394aa23d746c8376c8307f75f9fca0b983566b8bcf13cc661fe6dd") + + depends_on("py-setuptools", type="build") + depends_on("py-setuptools-scm+toml", type="build")