New package: py-hypercorn (#29141)

* [py-hypercorn] created template

* [py-hypercorn]

- added homepage
- added description
- added dependencies
- removed fixmes

* [py-hypercorn] removed setuptools dependency and added version restriction for py-typing-extensions
This commit is contained in:
Jen Herting 2022-03-16 15:12:27 -04:00 committed by GitHub
parent 508e3e03b9
commit 4b9f216c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,25 @@
# Copyright 2013-2022 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 import *
class PyHypercorn(PythonPackage):
"""A ASGI Server based on Hyper libraries and inspired by
Gunicorn."""
homepage = "https://gitlab.com/pgjones/hypercorn/"
pypi = "Hypercorn/Hypercorn-0.13.2.tar.gz"
version('0.13.2', sha256='6307be5cbdf6ba411967d4661202dc4f79bd511b5d318bc4eed88b09418427f8')
depends_on('python@3.7:', type=('build', 'run'))
depends_on('py-poetry-core@1:', type='build')
depends_on('py-h11', type=('build', 'run'))
depends_on('py-h2@3.1.0:', type=('build', 'run'))
depends_on('py-priority', type=('build', 'run'))
depends_on('py-toml', type=('build', 'run'))
depends_on('py-wsproto@0.14.0:', type=('build', 'run'))
depends_on('py-typing-extensions@3.7.4:', type=('build', 'run'), when='^python@:3.7')