Skip to content
Snippets Groups Projects
package.py 1.64 KiB
# Copyright 2013-2023 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 PyNestml(PythonPackage):
    """A Python package for writing and generating code for (spiking) neuron
    models and synaptic plasticity rules. Supports C++ code generation for
    NEST Simulator as well as other target platforms.
    """

    homepage = 'https://nestml.readthedocs.org/'
    url      = 'https://pypi.org/packages/py3/N/NESTML/NESTML-5.2.0-py3-none-any.whl'
    git      = 'https://github.com/nest/nestml/'

    maintainers = ['clinssen', 'pnbabu', 'jougs']

    version('6.0.0', sha256='224993f175b9599a3662e65afdaf57e355246c0eab5f88b795fdb089ea28b39e', expand=False)
    version('5.3.0', sha256='8de543d7d3a166cd4d6a0d536a2d4e769513bbf8d7aeaf64458e9d9c21fe546e', expand=False)
    version('5.2.0', sha256='acb703bf9c7f70304bd5d547dccd6a6a219f8acb298a6412df779b808241eb14', expand=False)

    depends_on('python@3.8:', type=('build', 'run'))
    depends_on('py-pip', type='build')
    depends_on('py-numpy@1.8.2:', type=('build', 'run'))
    depends_on('py-scipy', type=('build', 'run'))
    depends_on('py-sympy@1.1.1:1.10.1', type=('build', 'run'))
    depends_on('py-antlr4-python3-runtime@4.10:', type=('build', 'run'))
    depends_on('py-setuptools', type=('build', 'run'))
    depends_on('py-jinja2@2.10:', type=('build', 'run'))
    depends_on('py-astropy', type=('build', 'run'))
    depends_on('py-odetoolbox@2.4:', type=('build', 'run'))
    depends_on('nest', type=('build', 'run'))
    depends_on('py-pytest', type='test')