Add new python package to spack - py-pygame (game development package) (#41477)

Add pygame to spack
This commit is contained in:
Henrique Finger Zimerman 2023-12-17 03:06:44 -03:00 committed by GitHub
parent 8467f8ae8a
commit 49616d3020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,23 @@
# 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 PyPygame(PythonPackage):
"""Pygame is a free and open-source cross-platform library for the development
of multimedia applications like video games using Python. It uses the Simple
DirectMedia Layer library and several other popular libraries to abstract
the most common functions, making writing these programs a more intuitive task."""
homepage = "https://www.pygame.org/"
url = "https://pypi.org/project/pygame/2.5.2/"
license("LGPL-2.1-only")
version("2.5.2", sha256="c1b89eb5d539e7ac5cf75513125fb5f2f0a2d918b1fd6e981f23bf0ac1b1c24a")
depends_on("py-setuptools", type="build")
depends_on("python@3.6:", type=("build", "run"))