spack/var/spack/repos/builtin/packages/py-gensim/package.py
Adam J. Stewart c5883fffd7
Python: drop EOL versions (#33898)
This PR removes [end of life](https://endoflife.date/python) versions of Python from Spack. Specifically, this includes all versions of Python older than 3.7.

See https://github.com/spack/spack/discussions/31824 for rationale. Deprecated in #32615. And #28003.

For anyone using software that relies on Python 2, you have a few options:

* Upgrade the software to support Python 3. The `3to2` tool may get you most of the way there, although more complex libraries may need manual tweaking.
* Add Python 2 as an [external package](https://spack.readthedocs.io/en/latest/build_settings.html#external-packages). Many Python libraries do not support Python 2, but you may be able to add older versions that did once upon a time.
* Use Spack 0.19. Spack 0.19 is the last release to officially support Python 3.6 and older
* Create and maintain your own [custom repository](https://spack.readthedocs.io/en/latest/repositories.html). Basically, you would need a package for Python 2 and any other Python 2-specific libraries you need.
2022-11-22 15:02:30 -08:00

34 lines
1.3 KiB
Python

# Copyright 2013-2022 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 PyGensim(PythonPackage):
"""Gensim is a Python library for topic modelling, document indexing and
similarity retrieval with large corpora. Target audience is the natural
language processing (NLP) and information retrieval (IR) community."""
homepage = "https://radimrehurek.com/gensim"
pypi = "gensim/gensim-3.8.1.tar.gz"
maintainers = ["adamjstewart"]
version("3.8.3", sha256="786adb0571f75114e9c5f7a31dd2e6eb39a9791f22c8757621545e2ded3ea367")
version("3.8.1", sha256="33277fc0a8d7b0c7ce70fcc74bb82ad39f944c009b334856c6e86bf552b1dfdc")
version("3.8.0", sha256="ec5de7ff2bfa8692fa96a846bb5aae52f267fc322fbbe303c1f042d258af5766")
depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-numpy@1.11.3:", type=("build", "run"))
depends_on("py-scipy@0.18.1:", type=("build", "run"))
depends_on("py-six@1.5.0:", type=("build", "run"))
depends_on("py-smart-open@1.7.0:", when="@3.8.0", type=("build", "run"))
depends_on("py-smart-open@1.8.1:", when="@3.8.1:", type=("build", "run"))