From cfd35c4598fc071f5ebdbc34fa75050911bd22d2 Mon Sep 17 00:00:00 2001
From: Alexander Kozlov <akozlov@kth.se>
Date: Tue, 14 Jan 2025 08:46:04 +0100
Subject: [PATCH 1/3] add treem

---
 packages/py-treem/package.py | 24 ++++++++++++++++++++++++
 spack.yaml                   |  1 +
 2 files changed, 25 insertions(+)
 create mode 100644 packages/py-treem/package.py

diff --git a/packages/py-treem/package.py b/packages/py-treem/package.py
new file mode 100644
index 00000000..4126eb38
--- /dev/null
+++ b/packages/py-treem/package.py
@@ -0,0 +1,24 @@
+# (from https://github.com/BlueBrain/spack)
+
+# 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 PyTreem(PythonPackage):
+    """Module treem provides data structure and command-line tools 
+    for accessing and manipulating the digital reconstructions 
+    of the neuron morphology in Stockley-Wheal-Cannon format (SWC)."""
+
+    homepage = "https://github.com/a1eko/treem"
+    pypi = "treem/treem-1.1.0.tar.gz"
+
+    maintainers = ['a1eko'] # github usernames
+
+    version("1.1.0", sha256="214c0d00350d6aeb010264e4f50723df95401976")
+
+    depends_on("py-numpy", type="run")
+    depends_on("py-matplotlib", type="run")
diff --git a/spack.yaml b/spack.yaml
index 79fd41e2..0d51a0dd 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -47,6 +47,7 @@ spack:
     - py-siibra@1.0a9
     - py-snudda@2.0.1
     - py-spynnaker@7.3.0
+    - py-treem@1.1.0
     - py-tvb-framework@2.9
     - py-tvb-contrib@2.9.1
     - py-tvb-library@2.9.2
-- 
GitLab


From fca7758959e0097a6f7287c653e64a44eecfd6a7 Mon Sep 17 00:00:00 2001
From: Alexander Kozlov <akozlov@kth.se>
Date: Tue, 14 Jan 2025 09:14:41 +0100
Subject: [PATCH 2/3] update checksum

---
 packages/py-treem/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/py-treem/package.py b/packages/py-treem/package.py
index 4126eb38..5e2ae7a5 100644
--- a/packages/py-treem/package.py
+++ b/packages/py-treem/package.py
@@ -18,7 +18,7 @@ class PyTreem(PythonPackage):
 
     maintainers = ['a1eko'] # github usernames
 
-    version("1.1.0", sha256="214c0d00350d6aeb010264e4f50723df95401976")
+    version("1.1.0", sha256="eec63afd2ce675a6ad974a9b93f800918596bfda")
 
     depends_on("py-numpy", type="run")
     depends_on("py-matplotlib", type="run")
-- 
GitLab


From 7da915cb1b008b130a2a4d1af1ae9073618864ce Mon Sep 17 00:00:00 2001
From: Alexander Kozlov <akozlov@kth.se>
Date: Mon, 20 Jan 2025 13:30:49 +0100
Subject: [PATCH 3/3] Update package.py

---
 packages/py-treem/package.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/py-treem/package.py b/packages/py-treem/package.py
index 5e2ae7a5..e56e80f1 100644
--- a/packages/py-treem/package.py
+++ b/packages/py-treem/package.py
@@ -11,7 +11,9 @@ from spack.package import *
 class PyTreem(PythonPackage):
     """Module treem provides data structure and command-line tools 
     for accessing and manipulating the digital reconstructions 
-    of the neuron morphology in Stockley-Wheal-Cannon format (SWC)."""
+    of the neuron morphology in Stockley-Wheal-Cannon format (SWC).
+    Developed by Alexander Kozlov (akozlov@kth.se), 
+    KTH Royal Institute of Technology, Stockholm, Sweden."""
 
     homepage = "https://github.com/a1eko/treem"
     pypi = "treem/treem-1.1.0.tar.gz"
-- 
GitLab