summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-requests-cache/package.py
diff options
context:
space:
mode:
authorMarco De La Pierre <marco.delapierre@gmail.com>2022-12-17 05:28:51 +0800
committerGitHub <noreply@github.com>2022-12-16 14:28:51 -0700
commit1bf87dbb5d545d0f8b325c2118bfff91bd1cbc1f (patch)
tree87c9ef6233a019050f90bc0a16723a3d9e96b85c /var/spack/repos/builtin/packages/py-requests-cache/package.py
parentffe527b141703fa8d9bf3c45b8c05a24b8f954ae (diff)
downloadspack-1bf87dbb5d545d0f8b325c2118bfff91bd1cbc1f.tar.gz
spack-1bf87dbb5d545d0f8b325c2118bfff91bd1cbc1f.tar.bz2
spack-1bf87dbb5d545d0f8b325c2118bfff91bd1cbc1f.tar.xz
spack-1bf87dbb5d545d0f8b325c2118bfff91bd1cbc1f.zip
Adding first bunch of recipes for dependencies of nf-core-tools (#34537)
* nextflow recipe: added latest stable version * tower-cli recipe: added latest release * recipes tower-agent and tower-cli renamed to nf-tower-agent and nf-tower-cli * recipes nf-tower-agent and nf-tower-cli: small fix * nf-core-tools recipe: added most py- dependencies * nf-core-tools: recipe without galaxy-tool-util (for testing) * fixed typos in py-yacman recipe * fixed typos in py-pytest-workflow recipe * fixed typo in nf-core-tools recipe * fixed typos in py-yacman recipe * fixes in recipes for py-questionary and py-url-normalize * fixes to py-yacman recipe * style fixes to py- packages that are dependencies to nf-core-tools * fix in py-requests-cache recipe * added missing dep in py-requests-cache recipe * nf-core-tools deps: removed redundant python dep for py packages oyaml and piper * nf-core-tools recipe: final, incl dep on py-galaxy-tool-util * nf-core-tools: new version with extra dependency * commit to merge packages on focus from update/nextflow-tools * nf-core: commenting galaxy dep for this pr * Update var/spack/repos/builtin/packages/py-requests-cache/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update var/spack/repos/builtin/packages/py-requests-cache/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * removed nf-core-tools from this branch, will be back at the end Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/py-requests-cache/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-requests-cache/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-requests-cache/package.py b/var/spack/repos/builtin/packages/py-requests-cache/package.py
new file mode 100644
index 0000000000..e930f9126a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-requests-cache/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2022 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 PyRequestsCache(PythonPackage):
+ """A persistent HTTP cache that provides an easy way
+ to get better performance with the python requests library.
+ """
+
+ homepage = "https://github.com/requests-cache/requests-cache"
+ pypi = "requests-cache/requests_cache-0.9.7.tar.gz"
+
+ version("0.9.7", sha256="b7c26ea98143bac7058fad6e773d56c3442eabc0da9ea7480af5edfc134ff515")
+
+ depends_on("python@3.7:3", type=("build", "run"))
+ depends_on("py-poetry-core@1.0.0:", type="build")
+
+ depends_on("py-requests@2.22:", type=("build", "run"))
+ depends_on("py-urllib3@1.25.5:", type=("build", "run"))
+ depends_on("py-attrs@21.2:", type=("build", "run"))
+ depends_on("py-cattrs@22.2:", type=("build", "run"))
+ # depends_on("py-platformdirs@2.5:", type=("build", "run")) # will be in future versions
+ depends_on("py-url-normalize@1.4:", type=("build", "run"))
+ depends_on("py-appdirs@1.4.4:", type=("build", "run"))