summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-graphql-core/package.py6
-rw-r--r--var/spack/repos/builtin/packages/py-graphql-relay/package.py22
2 files changed, 27 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-graphql-core/package.py b/var/spack/repos/builtin/packages/py-graphql-core/package.py
index a9cb295237..492444f5cc 100644
--- a/var/spack/repos/builtin/packages/py-graphql-core/package.py
+++ b/var/spack/repos/builtin/packages/py-graphql-core/package.py
@@ -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")
diff --git a/var/spack/repos/builtin/packages/py-graphql-relay/package.py b/var/spack/repos/builtin/packages/py-graphql-relay/package.py
new file mode 100644
index 0000000000..67aaa8d25a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-graphql-relay/package.py
@@ -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")