diff options
author | Jen Herting <jen@herting.cc> | 2021-11-19 12:03:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 11:03:52 -0600 |
commit | af1b61569f0a0f4256a660f8f4f60017ce01a970 (patch) | |
tree | 086c41bc3c5bf92edc70057fe95f53f7e3bbfcac /var | |
parent | 7784ff55d628d2ced662503d4c868f0e08cb66ae (diff) | |
download | spack-af1b61569f0a0f4256a660f8f4f60017ce01a970.tar.gz spack-af1b61569f0a0f4256a660f8f4f60017ce01a970.tar.bz2 spack-af1b61569f0a0f4256a660f8f4f60017ce01a970.tar.xz spack-af1b61569f0a0f4256a660f8f4f60017ce01a970.zip |
New package: py-lws (#27536)
* [py-lws] added package
* added cython support
* updates for upstream
* updated py-lws with cython only option
* changes to py-lws for flake8
* [py-lws]
- update copyright
- url -> pypi
Co-authored-by: Sid Pendelberry <sid@rit.edu>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-lws/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-lws/package.py b/var/spack/repos/builtin/packages/py-lws/package.py new file mode 100644 index 0000000000..1bcfbd2b5e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-lws/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2021 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 PyLws(PythonPackage): + """Fast spectrogram phase recovery using Local Weighted Sums""" + + homepage = "https://pypi.org/project/lws/" + pypi = "lws/lws-1.2.6.tar.gz" + + version('1.2.6', sha256='ac94834832aadfcd53fcf4a77e1d95155063b39adbce14c733f8345bdac76e87') + + depends_on('python@3:', type=('build', 'run')) + depends_on('py-cython', type='build') + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run')) + depends_on('py-scipy', type=('build', 'run')) + + def setup_build_environment(self, env): + env.set('LWS_USE_CYTHON', 1) |