diff options
author | Jen Herting <jen@herting.cc> | 2022-03-31 00:02:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 22:02:41 -0600 |
commit | c99b3c31db019b2e0ed6cbac8fa1a4920027b94f (patch) | |
tree | ca8540e87c18cb165d0a71c408811feabc23417f /var/spack/repos/builtin/packages/py-pypinyin/package.py | |
parent | 768c35dd23bc341e1702f2a7ed1f3e3d7436556e (diff) | |
download | spack-c99b3c31db019b2e0ed6cbac8fa1a4920027b94f.tar.gz spack-c99b3c31db019b2e0ed6cbac8fa1a4920027b94f.tar.bz2 spack-c99b3c31db019b2e0ed6cbac8fa1a4920027b94f.tar.xz spack-c99b3c31db019b2e0ed6cbac8fa1a4920027b94f.zip |
New package: py-pypinyin (#29547)
* [py-pypinyin] created template
* [py-pypinyin]
- added homepage
- added dependencies
- removed some fixmes
* [py-pypinyin] added description
Diffstat (limited to 'var/spack/repos/builtin/packages/py-pypinyin/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pypinyin/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pypinyin/package.py b/var/spack/repos/builtin/packages/py-pypinyin/package.py new file mode 100644 index 0000000000..c201d89e31 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pypinyin/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2022 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 import * + + +class PyPypinyin(PythonPackage): + """Chinese Pinyin conversion module/tool.""" + + homepage = "https://github.com/mozillazg/python-pinyin" + pypi = "pypinyin/pypinyin-0.46.0.tar.gz" + + version('0.46.0', sha256='0d2e41e95dbc20a232c0f5d3850654eebbfcba303d96358d2c46592725bb989c') + + depends_on('python@2.6:2,3.3:3', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-argparse', type=('build', 'run'), when='^python@:2.6') + depends_on('py-enum34', type=('build', 'run'), when='^python@:3.3') + depends_on('py-typing', type=('build', 'run'), when='^python@:3.4') |