summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSangu Mbekelu <60823467+Sangu-Mbekelu@users.noreply.github.com>2023-07-10 15:16:42 -0400
committerGitHub <noreply@github.com>2023-07-10 12:16:42 -0700
commit73acf110ff834c43e210854a3260ea18e5c83bfc (patch)
tree34a0f05a634f274bdb2b51e92881b1cdeb798230 /var
parentff4996926493ed063fad377899247e700bea1ada (diff)
downloadspack-73acf110ff834c43e210854a3260ea18e5c83bfc.tar.gz
spack-73acf110ff834c43e210854a3260ea18e5c83bfc.tar.bz2
spack-73acf110ff834c43e210854a3260ea18e5c83bfc.tar.xz
spack-73acf110ff834c43e210854a3260ea18e5c83bfc.zip
py-sacrebleu (#37159)
* new mosesdecoder package * "new py-sacrebleu package" * Delete package.py * [@spackbot] updating style on behalf of Sangu-Mbekelu * Update package.py updating package based on review --------- Co-authored-by: Sangu Mbekelu <s.mbekelu9@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-sacrebleu/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-sacrebleu/package.py b/var/spack/repos/builtin/packages/py-sacrebleu/package.py
new file mode 100644
index 0000000000..998faf14a8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-sacrebleu/package.py
@@ -0,0 +1,29 @@
+# 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"
+
+ 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")