summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTristan Carel <tristan.carel@epfl.ch>2024-03-27 16:20:13 +0100
committerGitHub <noreply@github.com>2024-03-27 08:20:13 -0700
commit4cd993070f911680efb0e504a74ecb4d692addcb (patch)
tree6f7fcdc532ba5a30772d86a24f49b2510606b0fb /var
parent4c55c6a26837533881d8cc6541934f667e640809 (diff)
downloadspack-4cd993070f911680efb0e504a74ecb4d692addcb.tar.gz
spack-4cd993070f911680efb0e504a74ecb4d692addcb.tar.bz2
spack-4cd993070f911680efb0e504a74ecb4d692addcb.tar.xz
spack-4cd993070f911680efb0e504a74ecb4d692addcb.zip
py-libsonata: new package starting at 0.1.25 (#43372)
* py-libsonata: new package starting at 0.1.25 * align spack version with the git branch * Fix min required versions / use spack packages instead of submodules
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-libsonata/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-libsonata/package.py b/var/spack/repos/builtin/packages/py-libsonata/package.py
new file mode 100644
index 0000000000..d8ef9b9b83
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-libsonata/package.py
@@ -0,0 +1,34 @@
+# 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 PyLibsonata(PythonPackage):
+ """SONATA files reader"""
+
+ homepage = "https://github.com/BlueBrain/libsonata"
+ git = "https://github.com/BlueBrain/libsonata.git"
+ pypi = "libsonata/libsonata-0.1.14.tar.gz"
+
+ maintainers("tristan0x")
+
+ version("master", branch="master")
+ version("0.1.25", sha256="b332efa718123ee265263e1583a5998eaa945a13b8a22903873764cf1d8173fa")
+
+ depends_on("catch2@2.13:", type="test")
+ depends_on("cmake@3.16:", type="build")
+ depends_on("fmt@7.1:")
+ depends_on("hdf5@1.14:")
+ depends_on("highfive@2.9:")
+ depends_on("nlohmann-json@3.9.1")
+ depends_on("py-pybind11@2.11.1:")
+
+ depends_on("py-numpy@1.17.3:", type=("build", "run"))
+ depends_on("py-setuptools@42:", type="build", when="@0.1:")
+ depends_on("py-setuptools-scm@3.4:", type="build", when="@0.1:")
+
+ def patch(self):
+ filter_file("-DEXTLIB_FROM_SUBMODULES=ON", "-DEXTLIB_FROM_SUBMODULES=OFF", "setup.py")