[add] py-graphql-relay: new package (#39807)

* [add] py-graphql-relay: new package

* py-graphql-relay: Update package.py

Remove leftovers from version 3.2.0:
* archive name in pypi
* dependencies

* [fix] py-graphql-relay: remove constraint on python version; add dependence py-rx because of ModuleNotFoundError during spack test

* [fix] py-graphql-relay: remove py-rx dependence; py-graphql-core: add dependencies for version 2.3.2

* py-graphql-core: Update from review; set build backend, py-poetry for version 3: and py-setuptools for version 2

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Lydéric Debusschère 2023-10-03 12:45:06 +02:00 committed by GitHub
parent 7a390f503d
commit b480ae2b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View File

@ -20,4 +20,8 @@ class PyGraphqlCore(PythonPackage):
version("2.3.2", sha256="aac46a9ac524c9855910c14c48fc5d60474def7f99fd10245e76608eba7af746")
depends_on("python@3.6:3", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-poetry@1", when="@3:", type="build")
depends_on("py-setuptools", when="@2", type="build")
depends_on("py-six@1.10.0:", type=("build", "run"), when="@2.3.2")
depends_on("py-promise@2.3:2", type=("build", "run"), when="@2.3.2")
depends_on("py-rx@1.6:1", type=("build", "run"), when="@2.3.2")

View File

@ -0,0 +1,22 @@
# 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 PyGraphqlRelay(PythonPackage):
"""Relay library for graphql-core."""
homepage = "https://github.com/graphql-python/graphql-relay-py"
pypi = "graphql-relay/graphql-relay-2.0.1.tar.gz"
maintainers("LydDeb")
version("2.0.1", sha256="870b6b5304123a38a0b215a79eace021acce5a466bf40cd39fa18cb8528afabb")
depends_on("py-setuptools", type="build")
depends_on("py-graphql-core@2.2:2", type=("build", "run"), when="@2")
depends_on("py-six@1.12:", type=("build", "run"), when="@2")
depends_on("py-promise@2.2:2", type=("build", "run"), when="@2")