commit:     d7e7e3674a58734894e27bf0819933f080216ee9
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sun Aug 27 19:25:04 2023 +0000
Commit:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Sun Aug 27 19:25:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d7e7e367

dev-python/oauth2: new package, add 1.9

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 dev-python/oauth2/Manifest          |  1 +
 dev-python/oauth2/metadata.xml      | 25 +++++++++++++++++++++++++
 dev-python/oauth2/oauth2-1.9.ebuild | 31 +++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/dev-python/oauth2/Manifest b/dev-python/oauth2/Manifest
new file mode 100644
index 0000000000..e36d62201c
--- /dev/null
+++ b/dev-python/oauth2/Manifest
@@ -0,0 +1 @@
+DIST oauth2-1.9.gh.tar.gz 27353 BLAKE2B 
07fd62f16e4053d2bac7c1ab672fd178967ff20c9e3ecd6a1c31d5898fa0aeb6170944b07b2345f73aa9b2928622e7e0e88f2a96cf0d0bb4ea89417de80917cd
 SHA512 
ba3183aa4e5512920fa540955321646c167d23dfd4bc2fad4d5426e1b71e35e91fe11f6cd919a7913015f9bf33c43849659cb97c862a57b5c2e288ace29ad452

diff --git a/dev-python/oauth2/metadata.xml b/dev-python/oauth2/metadata.xml
new file mode 100644
index 0000000000..1a6a39cdcc
--- /dev/null
+++ b/dev-python/oauth2/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <longdescription lang="en">
+               This library implements OAuth 1.0 and not OAuth 2.0.
+
+               This code was originally forked from Leah Culver and Andy 
Smith's oauth.py code. Some of the tests come from a fork by Vic Fryzel, while 
a revamped Request class and more tests were merged in from Mark Paschal's 
fork. A number of notable differences exist between this code and its 
forefathers:
+
+               100% unit test coverage.
+               The DataStore object has been completely ripped out. While 
creating unit tests for the library I found several substantial bugs with the 
implementation and confirmed with Andy Smith that it was never fully baked.
+               Classes are no longer prefixed with OAuth.
+               The Request class now extends from dict.
+               The library is likely no longer compatible with Python 2.3.
+               The Client class works and extends from httplib2. It's a thin 
wrapper that handles automatically signing any normal HTTP request you might 
wish to make.
+       </longdescription>
+       <maintainer type="person">
+               <name>Vitaly Zdanevich</name>
+               <email>[email protected]</email>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">joestump/python-oauth2</remote-id>
+               <remote-id type="pypi">oauth2</remote-id>
+               
<bugs-to>https://github.com/joestump/python-oauth2/issues</bugs-to>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-python/oauth2/oauth2-1.9.ebuild 
b/dev-python/oauth2/oauth2-1.9.ebuild
new file mode 100644
index 0000000000..99a27e2329
--- /dev/null
+++ b/dev-python/oauth2/oauth2-1.9.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYPI_NO_NORMALIZE=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{3..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="A fully tested, abstract interface to creating OAuth clients and 
servers."
+HOMEPAGE="https://github.com/joestump/python-oauth2";
+SRC_URI="https://github.com/joestump/python-${PN}/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.gh.tar.gz"
+S=${WORKDIR}/python-${P}
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="dev-python/httplib2[${PYTHON_USEDEP}]
+dev-python/mock[${PYTHON_USEDEP}]
+dev-python/pycodestyle[${PYTHON_USEDEP}]
+dev-python/pytest[${PYTHON_USEDEP}]"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+       rm -rf "${S}/tests"
+       distutils-r1_src_prepare
+}

Reply via email to