diff --git a/packages/py-matplotlib-scalebar/package.py b/packages/py-matplotlib-scalebar/package.py new file mode 100644 index 0000000000000000000000000000000000000000..31907e85922ecf0ccd2f057f4329f31d380afd29 --- /dev/null +++ b/packages/py-matplotlib-scalebar/package.py @@ -0,0 +1,21 @@ +# 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 PyMatplotlibScalebar(PythonPackage): + """Matplotlib-Scalebar provides a new artist for matplotlib to display a scale bar, aka micron bar.""" + + homepage = "https://kolibril13.github.io/plywood-gallery-matplotlib-scalebar/" + pypi = "matplotlib-scalebar/matplotlib-scalebar-0.8.1.tar.gz" + git = "https://github.com/ppinard/matplotlib-scalebar.git" + + # list of GitHub accounts to notify when the package is updated. + maintainers = ["ppinard"] + + version("0.8.1", sha256="14887af1093579c5e6afae51a0a1ecc3f715cdbc5c4d7ef59cdeec76ee6bb15d") + + depends_on("py-matplotlib", type=("build", "run")) diff --git a/packages/py-netpyne/package.py b/packages/py-netpyne/package.py new file mode 100644 index 0000000000000000000000000000000000000000..e26287ad0c17cba5291495ea0e74e9b2e195c33a --- /dev/null +++ b/packages/py-netpyne/package.py @@ -0,0 +1,39 @@ +# 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 PyNetpyne(PythonPackage): + """NetPyNE (Networks using Python and NEURON) is a Python package to facilitate the development, simulation, parallelization, analysis, and optimization of biological neuronal networks using the NEURON simulator.""" + + homepage = "netpyne.org" + url = "https://github.com/suny-downstate-medical-center/netpyne/archive/refs/tags/v1.0.4.1.tar.gz" + git = "https://github.com/suny-downstate-medical-center/netpyne.git" + + # list of GitHub accounts to notify when the package is updated. + maintainers = ["salvadord", "vvbragin"] + + version("1.0.4.1", sha256="2ed12807f9b3d3e3a8ba9910f8d22c5c17635e0cdea0af09fa3a230e68876df6") + + depends_on("py-setuptools", type="build") + + depends_on("neuron", type=("build", "run")) + depends_on("py-numpy", type=("build", "run")) + depends_on("py-scipy", type=("build", "run")) + depends_on("py-matplotlib@:3.5.1", type=("build", "run")) + depends_on("py-matplotlib-scalebar", type=("build", "run")) + depends_on("py-future", type=("build", "run")) + depends_on("py-pandas", type=("build", "run")) + depends_on("py-bokeh", type=("build", "run")) + depends_on("py-schema", type=("build", "run")) + depends_on("py-lfpykit", type=("build", "run")) + depends_on('py-pytest', type='test') + + @run_after('install') + @on_package_attributes(run_tests=True) + def install_test(self): + pytest = which('pytest') + pytest('tests/doc/test_tutorials.py') diff --git a/packages/py-schema/package.py b/packages/py-schema/package.py new file mode 100644 index 0000000000000000000000000000000000000000..4b130dc233d8f669c659df482a9b1ae7daa07360 --- /dev/null +++ b/packages/py-schema/package.py @@ -0,0 +1,18 @@ +# 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 PySchema(PythonPackage): + """Simple data validation library""" + + homepage = "https://github.com/keleshev/schema" + pypi = "schema/schema-0.7.5.tar.gz" + + version("0.7.5", sha256="f06717112c61895cabc4707752b88716e8420a8819d71404501e114f91043197") + + depends_on("py-setuptools", type="build") + depends_on("py-contextlib2@0.5.5:", type=("build", "run")) diff --git a/spack.yaml b/spack.yaml index 481d6895de28fd299a2e0bca1ddd633797e629b4..a1ce26b456e5efd66f105ed87b5c07435ddafde4 100644 --- a/spack.yaml +++ b/spack.yaml @@ -40,9 +40,11 @@ spack: - py-hippounit@1.3.6 - py-lazyarray@0.5.2 - py-lfpy@2.3 + - py-lfpykit@0.5 - py-nameparser@1.1.1 - py-neo@0.12.0 - py-nestml@5.2.0 + - py-netpyne@1.0.4.1 - py-neuror@1.4.2 - py-neurom@3.2.2 - py-nixio@1.5.3 @@ -67,6 +69,9 @@ spack: - r-uqsa@2.2 - sda@7.3.3d - simpletraj@0.3 + # Utils + - py-schema@0.7.5 + - py-matplotlib-scalebar@0.8.1 # Workflows (meta-packages) - wf-uq-akar4@0.1 - wf-multi-area-model@0.1