diff --git a/packages/py-frites/package.py b/packages/py-frites/package.py new file mode 100644 index 0000000000000000000000000000000000000000..33622ed8765cfc6d15d625cd270b7df40cf1dfa1 --- /dev/null +++ b/packages/py-frites/package.py @@ -0,0 +1,61 @@ +# Copyright 2013-2022 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) + +# ---------------------------------------------------------------------------- +# If you submit this package back to Spack as a pull request, +# please first remove this boilerplate and all FIXME comments. +# +# This is a template package file for Spack. We've put "FIXME" +# next to all the things you'll want to change. Once you've handled +# them, you can save this file and test your package like this: +# +# spack install py-frites +# +# You can edit this file again by typing: +# +# spack edit py-frites +# +# See the Spack documentation for more information on packaging. +# ---------------------------------------------------------------------------- + +from spack import * + + +class PyFrites(PythonPackage): + """Frites is a Python toolbox for assessing information-based measures on + human and animal neurophysiological data (M/EEG, Intracranial).""" + + # FIXME: Add a proper url for your package's homepage here. + homepage = "https://brainets.github.io/frites/" + pypi = "frites/frites-0.4.2.tar.gz" + + # FIXME: Add a list of GitHub accounts to + # notify when the package is updated. + # maintainers = ['github_user1', 'github_user2'] + + version('0.4.2', sha256='5da63f6f91515ff0dbed0252a75fcbdeade4311bfd28d08cd644c89c85e6ac5a') + + # FIXME: Only add the python/pip/wheel dependencies if you need specific versions + # or need to change the dependency type. Generic python/pip/wheel dependencies are + # added implicity by the PythonPackage base class. + depends_on('python@3.7:', type=('build', 'run')) + # depends_on('py-pip@X.Y:', type='build') + # depends_on('py-wheel@X.Y:', type='build') + + # FIXME: Add a build backend, usually defined in pyproject.toml. If no such file + # exists, use setuptools. + depends_on('py-setuptools', type='build') + # depends_on('py-flit-core', type='build') + # depends_on('py-poetry-core', type='build') + + # FIXME: Add additional dependencies if required. + depends_on('py-numpy', type=('build', 'run')) + depends_on('py-scipy', type=('build', 'run')) + depends_on('py-mne', type=('build', 'run')) + depends_on('py-joblib', type=('build', 'run')) + depends_on('py-xarray', type=('build', 'run')) + depends_on('py-netcdf4', type=('build', 'run')) + depends_on('py-h5netcdf', type=('build', 'run')) + depends_on('py-scikit-learn', type=('build', 'run'))