summaryrefslogtreecommitdiff
path: root/dev-python/httpx-oauth
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/httpx-oauth')
-rw-r--r--dev-python/httpx-oauth/Manifest1
-rw-r--r--dev-python/httpx-oauth/httpx-oauth-0.16.0.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/httpx-oauth/Manifest b/dev-python/httpx-oauth/Manifest
index 6c5dc21c4bfc..1767c3cf30ae 100644
--- a/dev-python/httpx-oauth/Manifest
+++ b/dev-python/httpx-oauth/Manifest
@@ -1 +1,2 @@
DIST httpx-oauth-0.15.1.gh.tar.gz 41436 BLAKE2B d95869627961d798a5053797d9df58a6fca6d589d8769b94200197fa19d97a186d3ec3d2d198c2ae107234663132f67c5e7b3de3eeb02c81ef193da20a1985dc SHA512 4de6ca728f17913f3a01f175d2ea643fae3907ce920dafb4bedc3176a3fc143e140d28261bf7f490e093bd3874ebb2d8386e1e0a04909014098b0dbf14ced651
+DIST httpx-oauth-0.16.0.gh.tar.gz 41798 BLAKE2B c9d5f5ae95291e0d2ca4693262f996f5dfc87e62f80844949124c60f10d82e5d3b240c08eda4cec4b17c53136068c81e3cb18c09fe7d5742b04e917a67bfe008 SHA512 c614ae3ceba11cbec8366d3f842348b0daf7049b080773ef9e9e2a52642d57d374bf21e1e65b24f27f5690a8a789df907416ca5f55e7dcf5fffed15861f11d65
diff --git a/dev-python/httpx-oauth/httpx-oauth-0.16.0.ebuild b/dev-python/httpx-oauth/httpx-oauth-0.16.0.ebuild
new file mode 100644
index 000000000000..0727462b54be
--- /dev/null
+++ b/dev-python/httpx-oauth/httpx-oauth-0.16.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2024 Liguros Authors
+# Distributed under the terms of the GNU General Public License v2
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Async OAuth client using HTTPX"
+HOMEPAGE="https://github.com/frankie567/httpx-oauth"
+SRC_URI="https://github.com/frankie567/httpx-oauth/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT-0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/httpx-0.18[${PYTHON_USEDEP}]
+ <dev-python/httpx-1.0.0[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ dev-python/fastapi[${PYTHON_USEDEP}]
+ dev-python/respx[${PYTHON_USEDEP}]
+ )
+"
+
+DOCS=( README.md )
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # No need for regex-commit plugin
+ sed -e '/^source.*regex_commit/d' -i pyproject.toml || die
+ sed -e '/^commit_extra_args/d' -i pyproject.toml || die
+ sed -e 's/,\s*"hatch-regex-commit"//g' || pyproject.toml || die
+ # Disable coverage
+ sed -e '/^addopts/d' -i pyproject.toml || die
+
+ distutils-r1_python_prepare_all
+}