summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-tifffile/package.py
blob: d54ce07c3477a16c280c78d8822284a3bc64fef4 (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
27
28
29
30
31
32
33
# 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 PyTifffile(PythonPackage):
    """Read and write image data from and to TIFF files."""

    homepage = "https://github.com/cgohlke/tifffile"
    pypi = "tifffile/tifffile-0.12.1.tar.gz"

    license("BSD-3-Clause")

    version("2023.8.30", sha256="6a8c53b012a286b75d09a1498ab32f202f24cc6270a105b5d5911dc4426f162a")
    version(
        "2022.10.10", sha256="50b61ba943b866d191295bc38a00191c9fdab23ece063544c7f1a264e3f6aa8e"
    )
    version("2021.11.2", sha256="153e31fa1d892f482fabb2ae9f2561fa429ee42d01a6f67e58cee13637d9285b")
    version("2020.10.1", sha256="799feeccc91965b69e1288c51a1d1118faec7f40b2eb89ad2979591b85324830")
    version("0.12.1", sha256="802367effe86b0d1e64cb5c2ed886771f677fa63260b945e51a27acccdc08fa1")

    depends_on("python@3.9:", when="@2023.7.18:", type=("build", "run"))
    depends_on("python@3.8:", when="@2022.2.2:", type=("build", "run"))
    depends_on("py-setuptools", type="build")

    # py-tifffile@2023.1.23: don't have a lower bound on py-numpy anymore
    # -> leave it in nonetheless
    depends_on("py-numpy@1.19.2:", when="@2022.2.2:", type=("build", "run"))
    depends_on("py-numpy@1.15.1:", when="@2020.10.1:", type=("build", "run"))
    depends_on("py-numpy@1.8.2:", type=("build", "run"))