diff options
author | Sangu Mbekelu <60823467+Sangu-Mbekelu@users.noreply.github.com> | 2023-04-28 00:22:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 00:22:45 -0400 |
commit | 2f529a7320f849a39ec865dcb9c7e4c061135caa (patch) | |
tree | 59c1168d6ee1c0cea28e4dac18113e1b7d085fa0 | |
parent | cb4234b971a6b5a5d608ca533dbfaad3abe3d20c (diff) | |
download | spack-2f529a7320f849a39ec865dcb9c7e4c061135caa.tar.gz spack-2f529a7320f849a39ec865dcb9c7e4c061135caa.tar.bz2 spack-2f529a7320f849a39ec865dcb9c7e4c061135caa.tar.xz spack-2f529a7320f849a39ec865dcb9c7e4c061135caa.zip |
py-subword-nmt (#37161)
* "new py-subword-nmt package"
* [@spackbot] updating style on behalf of Sangu-Mbekelu
* Update package.py
updating package based on review
* [@spackbot] updating style on behalf of Sangu-Mbekelu
---------
Co-authored-by: Sangu Mbekelu <s.mbekelu9@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/py-subword-nmt/package.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-subword-nmt/package.py b/var/spack/repos/builtin/packages/py-subword-nmt/package.py new file mode 100644 index 0000000000..47341d5283 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-subword-nmt/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 PySubwordNmt(PythonPackage): + """This repository contains preprocessing scripts to segment text into + subword units.""" + + # pypi only has the whl file. + homepage = "https://github.com/joeynmt/joeynmt" + url = "https://github.com/rsennrich/subword-nmt/archive/refs/tags/v0.3.7.zip" + + version("0.3.7", sha256="5c3eafe8d85d872a3bbde722b130fb25db19cc7942561936bfae26b6daf51ba0") + + depends_on("py-setuptools", type="build") |