summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDom Heinzeller <dom.heinzeller@icloud.com>2024-09-26 01:34:04 -0600
committerGitHub <noreply@github.com>2024-09-26 09:34:04 +0200
commitd4233a3048d1b8d2ce20825bdc562512a25b8bcb (patch)
tree7c9aa337fd5265ada4cf9e24967c3915040e6c61 /var
parentbadb3bcee7e07683bee952d775cf0e7c756fb2cd (diff)
downloadspack-d4233a3048d1b8d2ce20825bdc562512a25b8bcb.tar.gz
spack-d4233a3048d1b8d2ce20825bdc562512a25b8bcb.tar.bz2
spack-d4233a3048d1b8d2ce20825bdc562512a25b8bcb.tar.xz
spack-d4233a3048d1b8d2ce20825bdc562512a25b8bcb.zip
py-arch and py-pandas-datareader: New packages (#46557)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-arch/package.py45
-rw-r--r--var/spack/repos/builtin/packages/py-pandas-datareader/package.py29
2 files changed, 74 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-arch/package.py b/var/spack/repos/builtin/packages/py-arch/package.py
new file mode 100644
index 0000000000..c752127384
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-arch/package.py
@@ -0,0 +1,45 @@
+# 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 PyArch(PythonPackage):
+ """Autoregressive Conditional Heteroskedasticity (ARCH) and other tools
+ for financial econometrics, written in Python (with Cython and/or Numba
+ used to improve performance)"""
+
+ homepage = "https://pypi.org/project/arch"
+ pypi = "arch/arch-7.0.0.tar.gz"
+ git = "https://github.com/bashtage/arch.git"
+
+ maintainers("climbfuji")
+
+ license("NCSA", checked_by="climbfuji")
+
+ version("7.0.0", sha256="353c0dba5242287b8b6b587a70250d788436630bf3b7ef6106f577e45d1ec247")
+
+ variant("numba", default=False, description="Enable numba backend")
+ variant("tutorial", default=True, description="Include dependencies for online tutorials")
+
+ depends_on("python@3.9:", type=("build", "run"))
+ depends_on("py-setuptools@0.61:", type="build")
+ depends_on("py-setuptools-scm@8.0.3:8 +toml", type="build")
+ depends_on("py-cython@3.0.10:", type="build")
+ # https://github.com/bashtage/arch/blob/9ced09e2566c0ebcad962d2441b1e79e2aaa7c9f/pyproject.toml#L59
+ # "numpy>=2.0.0rc1,<3" ???
+ # https://github.com/bashtage/arch/blob/9ced09e2566c0ebcad962d2441b1e79e2aaa7c9f/requirements.txt#L1
+ # numpy>=1.22.3 ???
+ depends_on("py-numpy@1.22.3", type=("build", "run"))
+
+ depends_on("py-scipy@1.8:", type="run")
+ depends_on("py-pandas@1.4:", type="run")
+ depends_on("py-statsmodels@0.12:", type="run")
+ depends_on("py-matplotlib@3:", type="run")
+ depends_on("py-numba@0.49:", type="run", when="+numba")
+
+ # Note. py-arch does not depend on py-pandas-datareader,
+ # but all examples in the py-arch documentation use it.
+ depends_on("py-pandas-datareader@0.10:", type="run", when="+tutorial")
diff --git a/var/spack/repos/builtin/packages/py-pandas-datareader/package.py b/var/spack/repos/builtin/packages/py-pandas-datareader/package.py
new file mode 100644
index 0000000000..6da8b1d9dc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pandas-datareader/package.py
@@ -0,0 +1,29 @@
+# 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 PyPandasDatareader(PythonPackage):
+ """Up-to-date remote data access for pandas. Works for multiple versions of pandas"""
+
+ homepage = "https://pypi.org/project/pandas-datareader"
+ pypi = "pandas-datareader/pandas-datareader-0.10.0.tar.gz"
+ git = "https://github.com/pydata/pandas-datareader.git"
+
+ maintainers("climbfuji")
+
+ license("BSD-3-Clause", checked_by="climbfuji")
+
+ version("0.10.0", sha256="9fc3c63d39bc0c10c2683f1c6d503ff625020383e38f6cbe14134826b454d5a6")
+
+ depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-setuptools@0.64:", type="build")
+ depends_on("py-setuptools-scm@8", type="build")
+
+ depends_on("py-lxml", type="run")
+ depends_on("py-pandas@1.5.3:", type="run")
+ depends_on("py-statsmodels@0.12:", type="run")
+ depends_on("py-requests@2.19:", type="run")