summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-sacrebleu/package.py
blob: 39de3a93310968266ec6ce5391df7dd5b9a46eb9 (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
25
26
27
28
29
30
31
# 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 PySacrebleu(PythonPackage):
    """SacreBLEU is a standard BLEU implementation that downloads and manages
    WMT datasets, produces scores on detokenized outputs, and reports a string
    encapsulating BLEU parameters, facilitating the production of shareable,
    comparable BLEU scores."""

    homepage = "https://github.com/mjpost/sacrebleu"
    pypi = "sacrebleu/sacrebleu-2.0.0.tar.gz"

    license("Apache-2.0")

    version("2.0.0", sha256="51fb69b6683f1b9999cd180143bb6b21d7841744537c9aab235cfe676550f0cf")

    depends_on("python@3.6.0:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-portalocker", type=("build", "run"))
    depends_on("py-regex", type=("build", "run"))
    depends_on("py-tabulate@0.8.9:", type=("build", "run"))
    depends_on("py-numpy@1.17:", type=("build", "run"))
    depends_on("py-colorama", type=("build", "run"))

    def patch(self):
        touch("CHANGELOG.md")