summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-08-30 10:57:59 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-08-30 10:57:59 -0700
commitf635a376bdebb09033967f133047de5886ec443f (patch)
treeafb2df5d1509acfb1fd27710bd9111cce2330da2 /var
parent36933901ba6ec93da0a5da0c2b1a4d0998f4b8d2 (diff)
downloadspack-f635a376bdebb09033967f133047de5886ec443f.tar.gz
spack-f635a376bdebb09033967f133047de5886ec443f.tar.bz2
spack-f635a376bdebb09033967f133047de5886ec443f.tar.xz
spack-f635a376bdebb09033967f133047de5886ec443f.zip
New package: py-oauthlib (#12528)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-oauthlib/package.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-oauthlib/package.py b/var/spack/repos/builtin/packages/py-oauthlib/package.py
new file mode 100644
index 0000000000..cc818163ec
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-oauthlib/package.py
@@ -0,0 +1,36 @@
+# Copyright 2013-2019 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 import *
+
+
+class PyOauthlib(PythonPackage):
+ """
+ A generic, spec-compliant, thorough implementation of the OAuth
+ request-signing logic
+ """
+
+ homepage = "https://github.com/oauthlib/oauthlib"
+ url = "https://pypi.io/packages/source/o/oauthlib/oauthlib-3.1.0.tar.gz"
+
+ version('3.1.0', sha256='bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889')
+ version('2.0.2', sha256='b3b9b47f2a263fe249b5b48c4e25a5bce882ff20a0ac34d553ce43cff55b53ac')
+
+ variant('extras', default=True, description='Build with pyjwt, blinker, cryptography')
+
+ depends_on('py-setuptools', type='build')
+
+ depends_on('py-pyjwt@1.0.0:', type=('build', 'run'), when='+extras')
+ depends_on('py-blinker', type=('build', 'run'), when='+extras')
+ depends_on('py-cryptography', type=('build', 'run'), when='+extras')
+
+ depends_on('py-mock@2.0:', type='test')
+ depends_on('py-pytest@4.0:', type='test')
+ depends_on('py-pytest-cov@2.6:', type='test')
+
+ depends_on('py-nose', type='test', when='@2.0.2')
+ depends_on('py-unittest2', type='test', when='^python@2 @2.0.2')
+
+ depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))