py-numpy-stl: new package (#35892)

This commit is contained in:
Erik Heeren 2023-03-08 00:02:13 +01:00 committed by GitHub
parent 272e69b2fd
commit 0d57c2ab24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,22 @@
# 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"
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"))

View file

@ -14,8 +14,11 @@ class PyPythonUtils(PythonPackage):
homepage = "https://github.com/WoLpH/python-utils" homepage = "https://github.com/WoLpH/python-utils"
pypi = "python-utils/python-utils-2.4.0.tar.gz" pypi = "python-utils/python-utils-2.4.0.tar.gz"
version("3.5.2", sha256="68198854fc276bc4b2403b261703c218e01ef564dcb072a7096ed9ea7aa5130c")
version("2.4.0", sha256="f21fc09ff58ea5ebd1fd2e8ef7f63e39d456336900f26bdc9334a03a3f7d8089") version("2.4.0", sha256="f21fc09ff58ea5ebd1fd2e8ef7f63e39d456336900f26bdc9334a03a3f7d8089")
version("2.3.0", sha256="34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3") version("2.3.0", sha256="34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3")
depends_on("py-setuptools", type="build") depends_on("py-setuptools", type="build")
depends_on("py-six", type=("build", "run")) depends_on("py-six", when="@:2.4.0", type=("build", "run"))
depends_on("py-typing-extensions", when="@3.5.2 ^python@:3.7", type=("build", "run"))