diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-elastic-transport/package.py | 19 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-elasticsearch/package.py | 11 |
2 files changed, 29 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-elastic-transport/package.py b/var/spack/repos/builtin/packages/py-elastic-transport/package.py new file mode 100644 index 0000000000..d43288b40f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-elastic-transport/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2023 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.package import * + + +class PyElasticTransport(PythonPackage): + """Transport classes and utilities shared among Python Elastic client libraries""" + + homepage = "https://github.com/elastic/elastic-transport-python" + pypi = "elastic-transport/elastic-transport-8.4.0.tar.gz" + + version("8.4.0", sha256="b9ad708ceb7fcdbc6b30a96f886609a109f042c0b9d9f2e44403b3133ba7ff10") + + depends_on("py-setuptools", type="build") + depends_on("py-urllib3@1.26.2:1", type=("build", "run")) + depends_on("py-certifi", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-elasticsearch/package.py b/var/spack/repos/builtin/packages/py-elasticsearch/package.py index 2659e26d74..0f023ee275 100644 --- a/var/spack/repos/builtin/packages/py-elasticsearch/package.py +++ b/var/spack/repos/builtin/packages/py-elasticsearch/package.py @@ -12,13 +12,22 @@ class PyElasticsearch(PythonPackage): homepage = "https://github.com/elastic/elasticsearch-py" pypi = "elasticsearch/elasticsearch-5.2.0.tar.gz" + version("8.6.2", sha256="084458e84caa91e3ad807b68aa82c022e785bead853a3b125641a25e894a1d47") + version("7.6.0", sha256="d228b2d37ac0865f7631335268172dbdaa426adec1da3ed006dddf05134f89c8") version("7.5.1", sha256="2a0ca516378ae9b87ac840e7bb529ec508f3010360dd9feed605dff2a898aff5") version("6.4.0", sha256="fb5ab15ee283f104b5a7a5695c7e879cb2927e4eb5aed9c530811590b41259ad") version("5.2.0", sha256="45d9f8fbe0878a1b7493afeb20f4f6677a43982776ed1a77d9373e9c5b9de966") version("2.3.0", sha256="be3080a2bf32dff0a9f9fcc1c087515a25a357645673a976d25ef77166134d81") + variant("async", when="@8.6.2:", default=False, description="Include support for asyncio") + depends_on("py-setuptools", type="build") - depends_on("py-urllib3@1.8:1", type=("build", "run")) + depends_on("python@3.7:3", when="@7.6.0:", type=("build", "run")) + depends_on("py-urllib3@1.8:1", when="@:5.2.0", type=("build", "run")) + depends_on("py-urllib3@1.21.1:", when="@6:7", type=("build", "run")) + depends_on("py-elastic-transport@8.0:8", when="@8.6.2:", type=("build", "run")) + depends_on("py-aiohttp@3.0:3", when="+async", type=("build", "run")) + # tests_require # depends_on('py-requests@1.0.0:2.9', type=('build', 'run')) # depends_on('py-nose', type=('build', 'run')) |