summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-lap/package.py
blob: 1cb214e5a360d64a0aab8b76f0b5e2064445eef4 (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-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 PyLap(PythonPackage):
    """lap is a linear assignment problem solver using
    Jonker-Volgenant algorithm for dense (LAPJV) or sparse (LAPMOD)
    matrices."""

    homepage = "https://github.com/gatagat/lap"
    pypi = "lap/lap-0.4.0.tar.gz"

    license("BSD-2-Clause")

    version("0.4.0", sha256="c4dad9976f0e9f276d8a676a6d03632c3cb7ab7c80142e3b27303d49f0ed0e3b")
    depends_on("py-setuptools", type="build")
    depends_on("py-cython@0.21:", type="build")
    depends_on("py-numpy@1.10.1:", type=("build", "run"))