Skip to content
Snippets Groups Projects

Update tvb-* packages to version 2.7.2. Fix tests

5 files
+ 17
13
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -11,18 +11,19 @@ class PyTvbData(PythonPackage):
Various demonstration datasets for use with The Virtual Brain are provided here.
"""
homepage = "https://zenodo.org/record/4263723"
url = 'https://zenodo.org/record/4263723/files/tvb_data.zip'
homepage = "https://zenodo.org/record/7574266"
url = 'https://zenodo.org/record/7574266/files/tvb_data.zip'
maintainers = ['paulapopa', "ldomide"]
version('2.7', 'f74ec53edadb4540da3de7268257dd20')
version('2.0.3', '1e02cdc21147f46644c57b14429f564f')
# python_requires
depends_on('python@3.8:', type=('build', 'run'))
# setup_requires
depends_on('py-setuptools', type='build')
depends_on('py-pip', type='build')
# this is only a data holder package, thus no real python code exists inside.
@run_after('install')
@@ -31,6 +32,9 @@ class PyTvbData(PythonPackage):
with working_dir('spack-test', create=True):
python('-c',
'import tvb_data.connectivity; '
'import tvb_data; '
'import os; '
'assert os.path.exists(os.path.dirname(tvb_data.connectivity.__path__[0]))')
'RR = tvb_data.__path__[0]; '
'assert os.path.exists(os.path.join(RR, "Default_Project.zip")); '
'assert os.path.exists(os.path.join(RR, "connectivity"))'
'')