summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authormschouler <schouler.marc@gmail.com>2023-06-23 22:07:04 +0200
committerGitHub <noreply@github.com>2023-06-23 15:07:04 -0500
commitdb8bf333d33a7eb64b2fca1948bbdf877183e31b (patch)
tree386e73265b96df975f9db8a2cb45fe50ce27becb /var
parentf73c8f2255601804081d24c8070acd999d23f413 (diff)
downloadspack-db8bf333d33a7eb64b2fca1948bbdf877183e31b.tar.gz
spack-db8bf333d33a7eb64b2fca1948bbdf877183e31b.tar.bz2
spack-db8bf333d33a7eb64b2fca1948bbdf877183e31b.tar.xz
spack-db8bf333d33a7eb64b2fca1948bbdf877183e31b.zip
Add recipe for iterative-stats (#38039)
* Add recipe for iterative-stats * Fix branch name and remove comment * Add git link * Add package maintainer * Enforce multiple requested changes * Update var/spack/repos/builtin/packages/py-iterative-stats/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update checksum * Fix openturns dependency specification * Add python variant spec to openturns --------- Co-authored-by: Marc Schouler <marc.schouler@inria.fr> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
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()