summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-iterative-stats/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-iterative-stats/package.py b/var/spack/repos/builtin/packages/py-iterative-stats/package.py
new file mode 100644
index 0000000000..f54e347906
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-iterative-stats/package.py
@@ -0,0 +1,35 @@
+# 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 PyIterativeStats(PythonPackage):
+ """Bacis iterative statistics implementation."""
+
+ pypi = "iterative-stats/iterative_stats-0.0.4.tar.gz"
+ git = "https://github.com/IterativeStatistics/BasicIterativeStatistics.git"
+ maintainers("frobinou")
+
+ version("main", branch="main")
+ version("0.0.4", sha256="7e838aa79de867b0e312be8cdf9319bb70824b624c684e968636cc8d4c9d5712")
+
+ # main dependencies
+ depends_on("python@3.8.0:3.10", type=("build", "run"))
+ depends_on("py-poetry-core@1.0.0:", type=("build"))
+ depends_on("py-pyyaml@6.0", type=("build", "run"))
+ depends_on("py-numpy@1.19:1", type=("build", "run"))
+
+ # dev dependencies
+ depends_on("py-pytest@6.2.1:6", type=("test"))
+ depends_on("py-autopep8@1.6.0", type=("test"))
+ depends_on("openturns@1.19+python+libxml2", type=("test"))
+ depends_on("py-scipy@1.8", type=("test"))
+
+ @run_after("install")
+ @on_package_attributes(run_tests=True)
+ def install_test(self):
+ pytest = which("pytest")
+ pytest()