summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-numpy-stl/package.py
blob: ce2e3e5a06767c3edd3a33ee66b522911f939daf (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
# 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 PyNumpyStl(PythonPackage):
    """Library to make reading, writing and modifying both binary and ascii STL files easy"""

    homepage = "https://github.com/WoLpH/numpy-stl/"
    pypi = "numpy-stl/numpy-stl-2.10.1.tar.gz"

    license("BSD-3-Clause")

    version("3.0.0", sha256="578b78eacb0529ac9aba2f17dcc363d58c7c3c5708710c18f8c1e9965f2e81ac")
    version("2.10.1", sha256="f6b529b8a8112dfe456d4f7697c7aee0aca62be5a873879306afe4b26fca963c")

    depends_on("py-setuptools", type="build")

    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-python-utils@1.6.2:", when="@2.10.1", type=("build", "run"))
    depends_on("py-python-utils@3.4.5:", when="@3:", type=("build", "run"))