summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pooch/package.py
blob: c3760d30c9e885169b36f64876e7189bff43b7fc (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
34
35
# Copyright 2013-2024 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 PyPooch(PythonPackage):
    """Pooch manages your Python library's sample data files: it automatically
    downloads and stores them in a local directory, with support for versioning
    and corruption checks."""

    homepage = "https://github.com/fatiando/pooch"
    pypi = "pooch/pooch-1.3.0.tar.gz"

    license("BSD-3-Clause")

    version("1.7.0", sha256="f174a1041b6447f0eef8860f76d17f60ed2f857dc0efa387a7f08228af05d998")
    version("1.5.2", sha256="5969b2f1defbdc405df932767e05e0b536e2771c27f1f95d7f260bc99bf13581")
    version("1.3.0", sha256="30d448e825904e2d763bbbe418831a788813c32f636b21c8d60ee5f474532898")

    depends_on("py-setuptools@45:", when="@1.6:", type="build")
    depends_on("py-setuptools", type="build")
    depends_on("py-setuptools-scm+toml@6.2:", when="@1.6:", type="build")
    depends_on("py-setuptools-scm", when="@1.4:", type="build")

    depends_on("py-platformdirs@2.5:", when="@1.7:", type=("build", "run"))
    depends_on("py-packaging@20:", when="@1.6:", type=("build", "run"))
    depends_on("py-packaging", type=("build", "run"))
    depends_on("py-requests@2.19:", when="@1.6:", type=("build", "run"))
    depends_on("py-requests", type=("build", "run"))

    # Historical dependencies
    depends_on("py-appdirs", when="@:1.5", type=("build", "run"))