summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-03-20 17:01:18 -0400
committerGitHub <noreply@github.com>2020-03-20 16:01:18 -0500
commit64737e0632e1d9c3a01b55bb19639aba5936037b (patch)
tree2a7954bc15146a735ec0405a8ae69b86d93e837f /var
parent42db143587c674fd1f66483bb7303fccdf349c0f (diff)
downloadspack-64737e0632e1d9c3a01b55bb19639aba5936037b.tar.gz
spack-64737e0632e1d9c3a01b55bb19639aba5936037b.tar.bz2
spack-64737e0632e1d9c3a01b55bb19639aba5936037b.tar.xz
spack-64737e0632e1d9c3a01b55bb19639aba5936037b.zip
py-torchtext: add new package (#15604)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-torchtext/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-torchtext/package.py b/var/spack/repos/builtin/packages/py-torchtext/package.py
new file mode 100644
index 0000000000..6bcae3d1e9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-torchtext/package.py
@@ -0,0 +1,24 @@
+# Copyright 2013-2020 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)
+
+
+class PyTorchtext(PythonPackage):
+ """Text utilities and datasets for PyTorch."""
+
+ homepage = "https://github.com/pytorch/text"
+ url = "https://pypi.io/packages/source/t/torchtext/torchtext-0.5.0.tar.gz"
+
+ maintainers = ['adamjstewart']
+
+ version('0.5.0', sha256='7f22e24e9b939fff56b9118c78dc07aafec8dcc67164de15b9b5ed339e4179c6')
+
+ depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-tqdm', type=('build', 'run'))
+ depends_on('py-requests', type=('build', 'run'))
+ depends_on('py-torch@0.4.0:', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-six', type=('build', 'run'))
+ depends_on('py-sentencepiece', type=('build', 'run'))