From 81524c0bd6eb713cc3ac1452b8dc4db47b8cf0e9 Mon Sep 17 00:00:00 2001 From: Lungsi <lungsi.ngwua@cnrs.fr> Date: Fri, 11 Feb 2022 13:37:39 +0100 Subject: [PATCH 1/3] spark package for CerebUnit --- packages/py-cerebunit/package.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 packages/py-cerebunit/package.py diff --git a/packages/py-cerebunit/package.py b/packages/py-cerebunit/package.py new file mode 100644 index 00000000..ead3586b --- /dev/null +++ b/packages/py-cerebunit/package.py @@ -0,0 +1,31 @@ +# 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 PyCerebunit(PythonPackage): + """CerebUnit is a component for validating cerebellum models that contains the validation tests. + It is one of the four components for validating cerebellum models: + CerebModels and CerebData do not require installation while CerebUnit and CerebStats require installation.""" + + homepage = "https://cerebunit.readthedocs.io" + pypi = "cerebunit/cerebunit-0.0.1.tar.gz" + git = "https://github.com/cerebunit/cerebunit.git" + + maintainers = ['lungsi', 'apdavison'] # github usernames + + version('0.0.1', sha256='f5b3811c5da2e8416a30a67497b90c87cba176493662e73f2191f1375a6d7bfe') + + depends_on('py-cerebstats', type=('build', 'run')) + depends_on('py-numpy', type=('build', 'run')) + depends_on('py-scipy', type=('build', 'run')) + depends_on('py-quantities', type='build', 'run') + depends_on('py-sciunit', type=('build', 'run')) + depends_on('py-pynwb', type=('build', 'run'), when="@1.0.2") + depends_on('py-hdmf', type=('build', 'run'), when="@1.0.3") + depends_on('py-h5py', type=('build', 'run')) + depends_on('py-pandas', type=('build', 'run')) + -- GitLab From fda0d47fc71488c89fd2139f7939fb3fdefb68f4 Mon Sep 17 00:00:00 2001 From: Lungsi <lungsi.ngwua@cnrs.fr> Date: Fri, 11 Feb 2022 13:38:48 +0100 Subject: [PATCH 2/3] spark package for CerebStats --- packages/py-cerebstats/package.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/py-cerebstats/package.py diff --git a/packages/py-cerebstats/package.py b/packages/py-cerebstats/package.py new file mode 100644 index 00000000..c72ec487 --- /dev/null +++ b/packages/py-cerebstats/package.py @@ -0,0 +1,26 @@ +# 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 PyCerebstats(PythonPackage): + """CerebStats is the statistical library for CerebUnit. + It is one of the four components for validating cerebellum models: + CerebModels and CerebData do not require installation while CerebUnit and CerebStats require installation.""" + + homepage = "https://cerebstats.readthedocs.io" + pypi = "cerebstats/cerebstats-0.0.3.tar.gz" + git = "https://github.com/cerebunit/cerebstats.git" + + maintainers = ['lungsi', 'apdavison'] # github usernames + + version('0.0.3', sha256='0270ac7d37706d067e5e72de80f6dbd23309ec02a71ad4443f0f457790a9aa8c') + + depends_on('py-numpy', type=('build', 'run')) + depends_on('py-scipy', type=('build', 'run')) + depends_on('py-quantities', type='build', 'run') + depends_on('py-sciunit', type=('build', 'run')) + -- GitLab From 1403907cfc36f83ce0e4419449f842d094ed5c52 Mon Sep 17 00:00:00 2001 From: Lungsi <lungsi.ngwua@cnrs.fr> Date: Sat, 12 Feb 2022 11:33:46 +0100 Subject: [PATCH 3/3] corrected vers. depend. error --- packages/py-cerebunit/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/py-cerebunit/package.py b/packages/py-cerebunit/package.py index ead3586b..f0c9e649 100644 --- a/packages/py-cerebunit/package.py +++ b/packages/py-cerebunit/package.py @@ -24,8 +24,8 @@ class PyCerebunit(PythonPackage): depends_on('py-scipy', type=('build', 'run')) depends_on('py-quantities', type='build', 'run') depends_on('py-sciunit', type=('build', 'run')) - depends_on('py-pynwb', type=('build', 'run'), when="@1.0.2") - depends_on('py-hdmf', type=('build', 'run'), when="@1.0.3") + depends_on('py-pynwb@1.0.2', type=('build', 'run')) + depends_on('py-hdmf@1.0.3', type=('build', 'run')) depends_on('py-h5py', type=('build', 'run')) depends_on('py-pandas', type=('build', 'run')) -- GitLab