mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
dev-python/oauth2: new package, add 1.9
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
1
dev-python/oauth2/Manifest
Normal file
1
dev-python/oauth2/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST oauth2-1.9.gh.tar.gz 27353 BLAKE2B 07fd62f16e4053d2bac7c1ab672fd178967ff20c9e3ecd6a1c31d5898fa0aeb6170944b07b2345f73aa9b2928622e7e0e88f2a96cf0d0bb4ea89417de80917cd SHA512 ba3183aa4e5512920fa540955321646c167d23dfd4bc2fad4d5426e1b71e35e91fe11f6cd919a7913015f9bf33c43849659cb97c862a57b5c2e288ace29ad452
|
||||
25
dev-python/oauth2/metadata.xml
Normal file
25
dev-python/oauth2/metadata.xml
Normal file
@@ -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>zdanevich.vitaly@ya.ru</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>
|
||||
31
dev-python/oauth2/oauth2-1.9.ebuild
Normal file
31
dev-python/oauth2/oauth2-1.9.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user