summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-ftfy/package.py
blob: bf5ee0da28632b7f11c5fce3b035b1978a166cce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2013-2023 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.package import *


class PyFtfy(PythonPackage):
    """Fixes Unicode that's broken in various ways."""

    homepage = "https://ftfy.readthedocs.io"
    pypi = "ftfy/ftfy-5.8.tar.gz"

    license("Apache-2.0")

    version("6.0.3", sha256="ba71121a9c8d7790d3e833c6c1021143f3e5c4118293ec3afb5d43ed9ca8e72b")
    version("5.8", sha256="51c7767f8c4b47d291fcef30b9625fb5341c06a31e6a3b627039c706c42f3720")
    version("4.4.3", sha256="3c0066db64a98436e751e56414f03f1cdea54f29364c0632c141c36cca6a5d94")

    depends_on("python@3.6:", type=("build", "run"), when="@6:")
    depends_on("python@3.5:", type=("build", "run"), when="@5:")
    depends_on("py-setuptools", type="build")
    depends_on("py-html5lib", when="@:4", type=("build", "run"))
    depends_on("py-wcwidth", type=("build", "run"))