Skip to content

Commit

Permalink
py-gidgethub: add new package (spack#41286)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Add optional dependencies as variants of package

* Add git url for main version

* Fix variant and dependency ordering

---------

Co-authored-by: Manuela Kuhn <[email protected]>
  • Loading branch information
alecbcs and manuelakuhn authored Dec 5, 2023
1 parent bb60bb4 commit 5911a67
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions var/spack/repos/builtin/packages/py-gidgethub/package.py
Original file line number Diff line number Diff line change
@@ -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("[email protected]:", type=("build", "run"))
depends_on("[email protected]:", type=("build", "run"))

depends_on("py-aiohttp", type=("build", "run"), when="+aiohttp")
depends_on("py-tornado", type=("build", "run"), when="+tornado")

0 comments on commit 5911a67

Please sign in to comment.