summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-subword-nmt/package.py
blob: ff57c1ffbc64e3a79acb4dae0fdfa86bc3c99d46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 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"

    license("MIT")

    version("0.3.7", sha256="5c3eafe8d85d872a3bbde722b130fb25db19cc7942561936bfae26b6daf51ba0")

    depends_on("py-setuptools", type="build")