blob: aa485deca38093f767f422695fe87ccda35175a9 (
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
|
# Copyright 2013-2020 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 PySoundfile(PythonPackage):
"""SoundFile is an audio library based on libsndfile, CFFI and NumPy."""
homepage = "https://github.com/bastibe/PySoundFile"
url = "https://pypi.io/packages/source/S/SoundFile/SoundFile-0.10.3.post1.tar.gz"
version('0.10.3.post1', sha256='490cff42650733d1832728b937fe99fa1802896f5ef4d61bcf78cf7ebecb107b')
variant('numpy', default=True,
description='Support for processing audio data as numpy arrays')
depends_on('py-setuptools', type='build')
depends_on('py-cffi@1.0:', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'), when='+numpy')
depends_on('libsndfile', type='run')
|