summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pyheadtail/package.py
blob: 872373d6e1f464169b6e2f701d5933e632e198a4 (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
# 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)

from spack.package import *


class PyPyheadtail(PythonPackage):
    """CERN PyHEADTAIL numerical n-body simulation code for simulating
    macro-particle beam dynamics with collective effects."""

    homepage = "https://github.com/PyCOMPLETE/PyHEADTAIL"
    pypi = "PyHEADTAIL/PyHEADTAIL-1.14.1.tar.gz"

    version('1.14.1', sha256='bf90ac7e8764176c55e82c363cad7ab43543863b6ef482760ced23b78e917bb4')
    version('1.13.1', sha256='29c742573a918126b5a9c21806ee0ec6a34ec642a0e6ad200f6d4551bf1bb310')

    depends_on('python', type=('build', 'run'))
    depends_on('python@3:', when='@1.13.5:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')
    depends_on('py-cython', type='build')
    depends_on('py-numpy', type=('build', 'run'))
    depends_on('py-scipy', type=('build', 'run'))
    depends_on('py-h5py', type=('build', 'run'))