summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2020-02-20 22:27:39 +0100
committerGitHub <noreply@github.com>2020-02-20 15:27:39 -0600
commitc78479989514b1a01f2a7c4e03ae6f4157457c43 (patch)
treec94cc125a7b2e396a2f8c77526852c5682c356d6
parentb5b19084deecc81cd1a637e7529e00911fb0e14d (diff)
downloadspack-c78479989514b1a01f2a7c4e03ae6f4157457c43.tar.gz
spack-c78479989514b1a01f2a7c4e03ae6f4157457c43.tar.bz2
spack-c78479989514b1a01f2a7c4e03ae6f4157457c43.tar.xz
spack-c78479989514b1a01f2a7c4e03ae6f4157457c43.zip
Add extra version of py-urllib3 (#15114)
* Add extra version of py-urllib3 * Update package.py * Update package.py * Update package.py * Update var/spack/repos/builtin/packages/py-urllib3/package.py Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/py-urllib3/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-urllib3/package.py b/var/spack/repos/builtin/packages/py-urllib3/package.py
index 891897c1b3..cbe4577ca4 100644
--- a/var/spack/repos/builtin/packages/py-urllib3/package.py
+++ b/var/spack/repos/builtin/packages/py-urllib3/package.py
@@ -14,6 +14,7 @@ class PyUrllib3(PythonPackage):
url = "https://pypi.io/packages/source/u/urllib3/urllib3-1.25.6.tar.gz"
version('1.25.6', sha256='9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86')
+ version('1.25.3', sha256='dbe59173209418ae49d485b87d1681aefa36252ee85884c31346debd19463232')
version('1.21.1', sha256='b14486978518ca0901a76ba973d7821047409d7f726f22156b24e83fd71382a5')
version('1.20', sha256='97ef2b6e2878d84c0126b9f4e608e37a951ca7848e4855a7f7f4437d5c34a72f')
version('1.14', sha256='dd4fb13a4ce50b18338c7e4d665b21fd38632c5d4b1d9f1a1379276bd3c08d37')
@@ -23,3 +24,13 @@ class PyUrllib3(PythonPackage):
depends_on('py-pytest', type='test')
depends_on('py-mock', type='test')
depends_on('py-tornado', type='test')
+
+ variant('secure', default=False, description='Add SSL/TLS support')
+ depends_on('py-pyopenssl@0.14:', when='+secure')
+ depends_on('py-cryptography@1.3.4:', when='+secure')
+ depends_on('py-idna@2:', when='+secure')
+ depends_on('py-certifi', when='+secure')
+ depends_on('py-ipaddress', when='+secure ^python@2.7:2.8')
+
+ variant('socks', default=False, description='SOCKS and HTTP proxy support')
+ depends_on('py-pysocks@1.5.6,1.5.8:1.999', when='+socks')