summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pycorenlp/package.py
blob: c74d3f602645d905625841f56a6b35fb8ac72ab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2024 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 PyPycorenlp(PythonPackage):
    """Python wrapper for Stanford CoreNLP. This simply wraps the API from the server
    included with CoreNLP."""

    homepage = "https://github.com/smilli/py-corenlp"
    pypi = "pycorenlp/pycorenlp-0.3.0.tar.gz"

    maintainers("meyersbs")

    version("0.3.0", sha256="3af60c557b23868659c0784efa1818f4c57c7b826b3e8f000d508aa17e62b67a")

    # From setup.py
    depends_on("py-setuptools", type="build")
    depends_on("py-requests", type=("build", "run"))
    # From README
    depends_on("corenlp@3.6.0:", type=("build", "run"))