From 3945e2ad93327ec261ede6dcaf92d57312bf44e7 Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Wed, 6 Oct 2021 15:44:33 -0400 Subject: [PATCH] New package: py-clean-text (#26511) * [py-clean-text] created template * [py-clean-text] - added description - added dependencies - removed fixmes --- .../builtin/packages/py-clean-text/package.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-clean-text/package.py diff --git a/var/spack/repos/builtin/packages/py-clean-text/package.py b/var/spack/repos/builtin/packages/py-clean-text/package.py new file mode 100644 index 0000000000..91b24bd5d8 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-clean-text/package.py @@ -0,0 +1,21 @@ +# 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 PyCleanText(PythonPackage): + """User-generated content on the Web and in social media is + often dirty. Preprocess your scraped data with clean-text + to create a normalized text representation.""" + + pypi = "clean-text/clean-text-0.5.0.tar.gz" + + version('0.5.0', sha256='e525951bef0c8b72e03c987fdac2c475b61d7debf7a8834366fd75716179b6e1') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-emoji', type=('build', 'run')) + depends_on('py-ftfy@6.0:6.999', type=('build', 'run'))