From 04437c4d3752aea17f6906f9bdb5aca809144c0a Mon Sep 17 00:00:00 2001
From: Shailesh Appukuttan <appukuttan.shailesh@gmail.com>
Date: Wed, 23 Feb 2022 14:47:13 +0100
Subject: [PATCH] update recipe and ADD neurom, morphio

---
 packages/py-morphio/package.py                | 21 ++++++++++++++
 .../{morphounit => py-morphounit}/package.py  | 16 +++++------
 packages/py-neurom/package.py                 | 28 +++++++++++++++++++
 spack.yaml                                    |  5 ++++
 4 files changed, 62 insertions(+), 8 deletions(-)
 create mode 100644 packages/py-morphio/package.py
 rename packages/{morphounit => py-morphounit}/package.py (56%)
 create mode 100644 packages/py-neurom/package.py

diff --git a/packages/py-morphio/package.py b/packages/py-morphio/package.py
new file mode 100644
index 00000000..69604f49
--- /dev/null
+++ b/packages/py-morphio/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2021 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 import *
+
+
+class PyMorphIO(PythonPackage):
+    """MorphIO is a library for reading and writing neuron morphology files
+    """
+
+    homepage = "https://github.com/BlueBrain/MorphIO/"
+    pypi     = "MorphIO/MorphIO-3.1.1.tar.gz"
+    git      = "https://github.com/BlueBrain/MorphIO.git"
+
+    version('3.1.1',  sha256='ad9f0e363f09f03c6eda54f5f3b006d204236677d2f2c9675421e0441033a503')
+
+    depends_on('python@3.6.9:')
+    depends_on('py-numpy@1.14.1:',      type=('build', 'run'))
+    depends_on('py-h5py@3.0:4.0',       type=('build', 'run'))
\ No newline at end of file
diff --git a/packages/morphounit/package.py b/packages/py-morphounit/package.py
similarity index 56%
rename from packages/morphounit/package.py
rename to packages/py-morphounit/package.py
index 4982fb24..fbbedf69 100644
--- a/packages/morphounit/package.py
+++ b/packages/py-morphounit/package.py
@@ -6,7 +6,7 @@
 from spack import *
 
 
-class MorphoUnit(PythonPackage):
+class PyMorphoUnit(PythonPackage):
     """A SciUnit library for data-driven testing of neuronal morphologies
     """
 
@@ -16,10 +16,10 @@ class MorphoUnit(PythonPackage):
 
     version('1.0.4', sha256='6dacadc91c66c15af91da8c1d45977e4aeaaa297a7bbc2e679f7d6a5e54e6f32')
 
-    depends_on('python@3.3:')
-    depends_on('neo@0.8.0:',             type=('build', 'run'))
-    depends_on('elephant@0.6.4:',        type=('build', 'run'))
-    depends_on('sciunit@0.2.1:',         type=('build', 'run'))
-    depends_on('neurom@1.4.10',          type=('build', 'run'))
-    depends_on('tabulate@0.8.6:',        type=('build', 'run'))
-    depends_on('seaborn@0.10.0:',        type=('build', 'run'))
\ No newline at end of file
+    depends_on('python@3.6.9:')
+    depends_on('py-neo@0.8.0:',            type=('build', 'run'))
+    depends_on('py-elephant@0.4.1:',       type=('build', 'run'))
+    depends_on('py-sciunit@0.2.5.1:',      type=('build', 'run'))
+    depends_on('py-neurom@1.4.10',         type=('build', 'run'))
+    depends_on('py-tabulate@0.8.6:',       type=('build', 'run'))
+    depends_on('py-seaborn@0.10.0:',       type=('build', 'run'))
\ No newline at end of file
diff --git a/packages/py-neurom/package.py b/packages/py-neurom/package.py
new file mode 100644
index 00000000..9b2948ac
--- /dev/null
+++ b/packages/py-neurom/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2021 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 import *
+
+
+class PyNeuroM(PythonPackage):
+    """NeuroM: a light-weight neuron morphology analysis package
+    """
+
+    homepage = "https://github.com/BlueBrain/NeuroM"
+    pypi     = "neurom/neurom-3.1.0.tar.gz"
+    git      = "https://github.com/BlueBrain/NeuroM.git"
+
+    version('3.1.0',  sha256='1a711c3bd92a55b845f6e26ec6197e9208bf3d91762088eda9cb00ceea992f3a')
+    version('1.4.10', sha256='c94823133bb15b5756c22391e05948871ff77c0212e91ad375903ca437e18aeb')
+
+    depends_on('python@3.6.9:')
+    depends_on('py-click@7.0:',         type=('build', 'run'))
+    depends_on('py-matplotlib@3.2.1:',  type=('build', 'run'))
+    depends_on('py-morphio@3.1.1:',     type=('build', 'run'))
+    depends_on('py-numpy@1.9.1:',       type=('build', 'run'))
+    depends_on('py-pandas@1.0.5',       type=('build', 'run'))
+    depends_on('py-pyyaml@3.11:',       type=('build', 'run'))
+    depends_on('py-scipy@1.2.1:',       type=('build', 'run'))
+    depends_on('py-tqdm@4.8.4:',        type=('build', 'run'))
\ No newline at end of file
diff --git a/spack.yaml b/spack.yaml
index 0d262fa1..0211a7c8 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -37,4 +37,9 @@ spack:
     - funniest1022 %gcc@10.3.0
     # NRP
     - py-torch~mkldnn~cuda~cudnn~onnx_ml~rocm~tensorpipe~mpi~distributed ^protobuf@:3.17.999 %gcc@10.3.0
+    # EBRAINS tools and services
+    - py-morphounit@1.0.4 %gcc@10.3.0
+    # Other tools and services
+    - py-neurom@1.4.10 %gcc@10.3.0
+    - py-morphio@3.1.1 %gcc@10.3.0
   concretization: together
-- 
GitLab