From 4cd993070f911680efb0e504a74ecb4d692addcb Mon Sep 17 00:00:00 2001 From: Tristan Carel Date: Wed, 27 Mar 2024 16:20:13 +0100 Subject: 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 --- .../repos/builtin/packages/py-libsonata/package.py | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-libsonata/package.py (limited to 'var') 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") -- cgit v1.2.3-70-g09d2