summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-requests-toolbelt/package.py
blob: 819b37103ea2c4cb5d93c8b26e1e0cb34ee6ba63 (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
# 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 PyRequestsToolbelt(PythonPackage):
    """A toolbelt of useful classes and functions to be used with
    python-requests"""

    homepage = "https://toolbelt.readthedocs.org/"
    pypi = "requests-toolbelt/requests-toolbelt-0.9.1.tar.gz"
    git = "https://github.com/requests/toolbelt.git"

    license("Apache-2.0")

    version("1.0.0", sha256="7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6")
    version("0.9.1", sha256="968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0")
    version("0.8.0", sha256="f6a531936c6fa4c6cfce1b9c10d5c4f498d16528d2a54a22ca00011205a187b5")

    depends_on("py-setuptools", type="build")
    depends_on("py-requests@2.0.1:2", type=("build", "run"))