summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Scott <hi@alecbcs.com>2023-12-05 12:26:42 -0800
committerGitHub <noreply@github.com>2023-12-05 21:26:42 +0100
commit5911a677d480266aa57dc05b60dd2feab1ec09b1 (patch)
tree6a7f2cac89f94e1748f5ccd493c3757b690fe521
parentbb60bb4f7abb91e9954b66405acf8f8a3d398aee (diff)
downloadspack-5911a677d480266aa57dc05b60dd2feab1ec09b1.tar.gz
spack-5911a677d480266aa57dc05b60dd2feab1ec09b1.tar.bz2
spack-5911a677d480266aa57dc05b60dd2feab1ec09b1.tar.xz
spack-5911a677d480266aa57dc05b60dd2feab1ec09b1.zip
py-gidgethub: add new package (#41286)
* py-gidgethub: add new package * Add main branch version and scope flit/flit-core dependency * Update var/spack/repos/builtin/packages/py-gidgethub/package.py Co-authored-by: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> * Add optional dependencies as variants of package * Add git url for main version * Fix variant and dependency ordering --------- Co-authored-by: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/py-gidgethub/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-gidgethub/package.py b/var/spack/repos/builtin/packages/py-gidgethub/package.py
new file mode 100644
index 0000000000..2f547db11a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-gidgethub/package.py
@@ -0,0 +1,38 @@
+# 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 PyGidgethub(PythonPackage):
+ """An async GitHub API library for Python."""
+
+ homepage = "https://github.com/gidgethub/gidgethub"
+ pypi = "gidgethub/gidgethub-5.3.0.tar.gz"
+ git = "https://github.com/gidgethub/gidgethub.git"
+
+ maintainers("alecbcs")
+
+ license("Apache-2.0")
+
+ version("main", branch="main")
+ version("5.3.0", sha256="9ece7d37fbceb819b80560e7ed58f936e48a65d37ec5f56db79145156b426a25")
+
+ variant(
+ "aiohttp", default=False, description="Enable aiohttp functionality through dependency."
+ )
+ variant(
+ "tornado", default=False, description="Enable tornado functionality through dependency."
+ )
+
+ depends_on("py-flit", type="build", when="@:5.3.0")
+ depends_on("py-flit-core", type="build", when="@5.3.1:")
+
+ depends_on("py-uritemplate@3.0.1:", type=("build", "run"))
+ depends_on("py-pyjwt+crypto@2.4.0:", type=("build", "run"))
+
+ depends_on("py-aiohttp", type=("build", "run"), when="+aiohttp")
+ depends_on("py-tornado", type=("build", "run"), when="+tornado")