summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-lws/package.py
blob: ad88325af280b7ce023ab0c886fda41840661bbe (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
# 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.package 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"

    license("Apache-2.0")

    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)