diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | python-oci.patch | 27 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f5b772e14dcc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = python-oci + pkgdesc = Python SDK for Oracle Cloud Infrastructure + pkgver = 1.4.4 + pkgrel = 1 + url = https://github.com/oracle/oci-python-sdk + arch = any + license = Apache + makedepends = python-setuptools + depends = python + depends = python-pyjwt + depends = python-dateutil + depends = python-certifi + depends = python-cryptography + depends = python-idna + depends = python-pyopenssl + depends = python-pytz + depends = python-requests + depends = python-six + source = https://github.com/oracle/oci-python-sdk/archive/v1.4.4.tar.gz + source = python-oci.patch + sha256sums = 7c371b8e443d81d445308443954690a207ba50cf0b3aa8c45604511c20a7d46f + sha256sums = a79054a7ff2505bee403f91bdd7b4217e8704df0ce19f7eb9c0c249d77abefad + +pkgname = python-oci + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..951524f85f61 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Andrew O'Neill <andrew at meanjollies dot com> + +pkgname=python-oci +_pyname=oci-python-sdk +pkgver=1.4.4 +pkgrel=1 +pkgdesc='Python SDK for Oracle Cloud Infrastructure' +arch=('any') +url="https://github.com/oracle/oci-python-sdk" +license=('Apache') +depends=('python' 'python-pyjwt' 'python-dateutil' 'python-certifi' 'python-cryptography' 'python-idna' 'python-pyopenssl' 'python-pytz' 'python-requests' 'python-six') +makedepends=('python-setuptools') +source=("${url}/archive/v${pkgver}.tar.gz" + "${pkgname}.patch") +sha256sums=('7c371b8e443d81d445308443954690a207ba50cf0b3aa8c45604511c20a7d46f' + 'a79054a7ff2505bee403f91bdd7b4217e8704df0ce19f7eb9c0c249d77abefad') + +prepare() { + cd "${_pyname}-${pkgver}" + + patch -p1 -i ../${pkgname}.patch +} + +build() { + cd "${_pyname}-${pkgver}" + + python setup.py build +} + +package() { + cd "${_pyname}-$pkgver" + + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/python-oci.patch b/python-oci.patch new file mode 100644 index 000000000000..443fdc414fdc --- /dev/null +++ b/python-oci.patch @@ -0,0 +1,27 @@ +diff -rupN oci-python-sdk-1.4.4/setup.py oci-python-sdk-1.4.4b/setup.py +--- oci-python-sdk-1.4.4/setup.py 2018-06-28 18:07:21.000000000 -0400 ++++ oci-python-sdk-1.4.4b/setup.py 2018-07-01 13:32:34.083089009 -0400 +@@ -30,15 +30,14 @@ with open_relative("README.rst") as f: + + requires = [ + "certifi", +- "configparser==3.5.0", +- "cryptography==2.1.3", +- "idna>=2.5,<2.7", +- "PyJWT==1.5.3", +- "pyOpenSSL<=17.4.0", +- "python-dateutil>=2.5.3,<=2.7.3", +- "pytz>=2016.10", +- "requests==2.18.4", +- "six==1.11.0", ++ "cryptography", ++ "idna", ++ "PyJWT", ++ "pyOpenSSL", ++ "python-dateutil", ++ "pytz", ++ "requests", ++ "six", + ] + + setup( |