summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pynn/package.py
blob: 8b7e40fed7e749533bc731da047169bd2a1f1387 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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 PyPynn(PythonPackage):
    """A Python package for simulator-independent specification of neuronal
    network models
    """

    homepage = "https://neuralensemble.org/PyNN/"
    pypi = "PyNN/PyNN-0.8.3.tar.gz"
    git = "https://github.com/NeuralEnsemble/PyNN.git"

    license("CECILL-2.0")

    version("0.10.0", sha256="04120fe0e03260d664b337e0ac29d985c3fb3684ef35b1add93a66739891c98f")
    version("0.9.1", sha256="bbc60fea3235427191feb2daa0e2fa07eb1c3946104c068ac8a2a0501263b0b1")
    version("0.8.3", sha256="9d59e6cffa4714f0c892ec6b32d1f5f8f75ba3a20d8635bac50c047aa6f2537e")
    version("0.8beta", commit="ffb0cb1661f2b0f2778db8f71865978fe7a7a6a4")
    version("0.8.1", sha256="ce94246284588414d1570c1d5d697805f781384e771816727c830b01ee30fe39")
    version("0.7.5", sha256="15f75f422f3b71c6129ecef23f29d8baeb3ed6502e7a321b8a2596c78ef7e03c")

    depends_on("python@2.6:2.8,3.3:", type=("build", "run"))
    depends_on("python@3.7:", type=("build", "run"), when="@0.10.0:")

    # pip silently replaces distutils with setuptools
    depends_on("py-setuptools", type="build")
    depends_on("py-jinja2@2.7:", type=("build", "run"), when="@:0.9")
    depends_on("py-docutils@0.10:", type=("build", "run"), when="@:0.9")

    depends_on("py-numpy@1.5:", type=("build", "run"))
    depends_on("py-numpy@1.16.1:", type=("build", "run"), when="@0.10.0:")

    depends_on("py-quantities@0.10:", type=("build", "run"))
    depends_on("py-quantities@0.12.1:", type=("build", "run"), when="@0.10.0:")

    depends_on("py-lazyarray@0.2.9:", type=("build", "run"))
    depends_on("py-lazyarray@0.5.0:", type=("build", "run"), when="@0.10.0:")

    depends_on("py-neo@0.3:0.4.1", type=("build", "run"), when="@:0.8.3")
    depends_on("py-neo@0.5.0:", type=("build", "run"), when="@0.9.0:")
    depends_on("py-neo@0.10.0:", type=("build", "run"), when="@0.10.0:")