diff --git a/packages/py-ipyfilechooser/package.py b/packages/py-ipyfilechooser/package.py new file mode 100644 index 0000000000000000000000000000000000000000..5d5cd2a6fb896d885be183f7259d4dc746c28639 --- /dev/null +++ b/packages/py-ipyfilechooser/package.py @@ -0,0 +1,25 @@ +# 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 PyIpyfilechooser(PythonPackage): + """Python file chooser widget for use in Jupyter/IPython in conjunction with ipywidgets """ + + homepage = "https://github.com/crahan/ipyfilechooser" + pypi = "ipyfilechooser/ipyfilechooser-0.6.0.tar.gz" + + maintainers("DennisDoll", "mloshakov", "acascais") + + #license("MIT", checked_by="DennisDoll") + + version("0.6.0", sha256="41df9e4395a924f8e1b78e2804dbe5066dc3fdc233fb07fecfcdc2a0c9a7d8d3") + + depends_on("python@3:", type=("build", "run")) + depends_on("py-ipywidgets", type=("build", "run")) + + depends_on("py-setuptools", type="build") diff --git a/packages/py-neuralactivitycubic/package.py b/packages/py-neuralactivitycubic/package.py new file mode 100644 index 0000000000000000000000000000000000000000..95c94c842b1ae1df5820e73138bd4521b963ec9d --- /dev/null +++ b/packages/py-neuralactivitycubic/package.py @@ -0,0 +1,41 @@ +# 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 PyNeuralactivitycubic(PythonPackage): + """Computation of local and signal-close-to-noise calcium activity.""" + + homepage = "https://github.com/Indoc-Research/NeuralActivityCubic" + pypi = "neuralactivitycubic/neuralactivitycubic-0.0.3.tar.gz" + + maintainers("DennisDoll", "mloshakov", "acascais") + + version("0.0.3", sha256="516e99e44a70d83f526a128e653a63c6b7ae4ffbe362fe7854121999a7c8fecb") + + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-ipywidgets@8.0.2:8", type=("build", "run")) + depends_on("py-ipyfilechooser@0.6.0", type=("build", "run")) + depends_on("py-imageio@2.30:2", type=("build", "run")) + depends_on("py-imageio-ffmpeg@0.4:0.5", type=("build", "run")) + depends_on("py-matplotlib@3.8:3.9", type=("build", "run")) + depends_on("py-scipy@1.11.4:", type=("build", "run")) + depends_on("py-numpy@1.26.0:1.9", type=("build", "run")) + depends_on("py-pandas@2.2.0:2.4", type=("build", "run")) + depends_on("py-pybaselines@1.1.0:", type=("build", "run")) + depends_on("py-roifile@2024.1.10:", type=("build", "run")) + depends_on("py-shapely@2.0.1:", type=("build", "run")) + depends_on("py-scikit-image@0.22.0:", type=("build", "run")) + + depends_on("py-jupyterlab@4.3.3:5", type=("run")) + + depends_on("py-setuptools", type="build") + + + @run_after('install') + @on_package_attributes(run_tests=True) + def install_test(self): + with working_dir('spack-test', create=True): + python('-c','import neuralactivitycubic') diff --git a/packages/py-pybaselines/package.py b/packages/py-pybaselines/package.py new file mode 100644 index 0000000000000000000000000000000000000000..a35ad896138b7bb5f802f532de5b86d2d4dfb9a7 --- /dev/null +++ b/packages/py-pybaselines/package.py @@ -0,0 +1,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 PyPybaselines(PythonPackage): + """pybaselines is a library of algorithms for the baseline correction of experimental data.""" + + homepage = "https://github.com/derb12/pybaselines" + pypi = "pybaselines/pybaselines-1.1.0.tar.gz" + + maintainers("mloshakov", "dennisdoll") + + version("1.1.0", sha256="1f61ca378459af3983d6ca5813610ca587ac33d5b89e3c03bfb5f692bde61526") + + depends_on("python@3.8:", type=("build", "run")) + + depends_on("py-setuptools", type="build") + + depends_on("py-numpy@1.20:", type=("build", "run")) + depends_on("py-scipy@1.5:", type=("build", "run")) diff --git a/packages/py-roifile/package.py b/packages/py-roifile/package.py new file mode 100644 index 0000000000000000000000000000000000000000..1132b381cae9cf4393568968461cb988cb8f9909 --- /dev/null +++ b/packages/py-roifile/package.py @@ -0,0 +1,28 @@ +# 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 * + + +# Backported from spack v0.23.0 +class PyRoifile(PythonPackage): + """Roifile is a Python library to read, write, create, and plot ImageJ ROIs""" + + homepage = "https://www.cgohlke.com/" + pypi = "roifile/roifile-2024.1.10.tar.gz" + + # license("BSD-3-Clause", checked_by="A-N-Other") + + version("2024.1.10", sha256="8bbc05a96c0a291429214cb6829426378e89931d1a7d3ad945aa2fea5765e434") + + variant("all", default=True, description="Enable TIFF support") + + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-setuptools", type="build") + + depends_on("py-numpy", type=("build", "run")) + + depends_on("py-matplotlib", type=("build", "run"), when="+all") + depends_on("py-tifffile", type=("build", "run"), when="+all") \ No newline at end of file diff --git a/spack.yaml b/spack.yaml index b99a827038f34fffb388af454bfc187d263cb07f..753d14fca38d67b7cd51fc906a828bd2bf9074bc 100644 --- a/spack.yaml +++ b/spack.yaml @@ -44,6 +44,7 @@ spack: - py-neo@0.13.3 - py-nestml@8.0.0 - py-netpyne@1.0.6 + - py-neuralactivitycubic@0.0.3 - py-neurom@3.2.4 - py-neuror@1.6.4 - py-pynn@0.12.3 +mpi