py-transformers: add new package (#16011)
This commit is contained in:
		
							
								
								
									
										29
									
								
								var/spack/repos/builtin/packages/py-transformers/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								var/spack/repos/builtin/packages/py-transformers/package.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| # 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 PyTransformers(PythonPackage): | ||||
|     """State-of-the-art Natural Language Processing for TensorFlow 2.0 and | ||||
|     PyTorch""" | ||||
| 
 | ||||
|     homepage = "https://github.com/huggingface/transformers" | ||||
|     url      = "https://pypi.io/packages/source/t/transformers/transformers-2.8.0.tar.gz" | ||||
| 
 | ||||
|     maintainers = ['adamjstewart'] | ||||
| 
 | ||||
|     version('2.8.0', sha256='b9f29cdfd39c28f29e0806c321270dea337d6174a7aa60daf9625bf83dbb12ee') | ||||
| 
 | ||||
|     depends_on('python@3.6:', type=('build', 'run')) | ||||
|     depends_on('py-setuptools', type='build') | ||||
|     depends_on('py-numpy', type=('build', 'run')) | ||||
|     depends_on('py-tokenizers@0.5.2', type=('build', 'run')) | ||||
|     depends_on('py-dataclasses', when='^python@:3.6', type=('build', 'run')) | ||||
|     depends_on('py-boto3', type=('build', 'run')) | ||||
|     depends_on('py-filelock', type=('build', 'run')) | ||||
|     depends_on('py-requests', type=('build', 'run')) | ||||
|     depends_on('py-tqdm@4.27:', type=('build', 'run')) | ||||
|     depends_on('py-regex@:2019.12.16,2019.12.18:', type=('build', 'run')) | ||||
|     depends_on('py-sentencepiece', type=('build', 'run')) | ||||
|     depends_on('py-sacremoses', type=('build', 'run')) | ||||
		Reference in New Issue
	
	Block a user
	 Adam J. Stewart
					Adam J. Stewart