34 lines
1.5 KiB
Python
34 lines
1.5 KiB
Python
# 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 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"
|
|
|
|
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"))
|