summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-word2number/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-word2number/package.py b/var/spack/repos/builtin/packages/py-word2number/package.py
new file mode 100644
index 0000000000..de80d9041f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-word2number/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2021 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 PyWord2number(PythonPackage):
+ """This is a Python module to convert number words (eg.
+ twenty one) to numeric digits (21). It works for positive
+ numbers upto the range of 999,999,999,999 (i.e.
+ billions)."""
+
+ homepage = "https://w2n.readthedocs.io"
+ pypi = "word2number/word2number-1.1.zip"
+
+ version('1.1', sha256='70e27a5d387f67b04c71fbb7621c05930b19bfd26efd6851e6e0f9969dcde7d0')
+
+ depends_on('py-setuptools', type='build')