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 <ajstewart426@gmail.com>

* py-cheap-repr: use pypi link instead

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
jmlapre 2024-03-08 07:45:25 -05:00 committed by GitHub
parent 7440bb4c36
commit 772928241b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")