diff --git a/var/spack/repos/builtin/packages/py-numpy-stl/package.py b/var/spack/repos/builtin/packages/py-numpy-stl/package.py new file mode 100644 index 0000000000..e789235132 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-numpy-stl/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-python-utils/package.py b/var/spack/repos/builtin/packages/py-python-utils/package.py index 3e855212a7..cc4331040c 100644 --- a/var/spack/repos/builtin/packages/py-python-utils/package.py +++ b/var/spack/repos/builtin/packages/py-python-utils/package.py @@ -14,8 +14,11 @@ class PyPythonUtils(PythonPackage): homepage = "https://github.com/WoLpH/python-utils" pypi = "python-utils/python-utils-2.4.0.tar.gz" + version("3.5.2", sha256="68198854fc276bc4b2403b261703c218e01ef564dcb072a7096ed9ea7aa5130c") version("2.4.0", sha256="f21fc09ff58ea5ebd1fd2e8ef7f63e39d456336900f26bdc9334a03a3f7d8089") version("2.3.0", sha256="34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3") 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"))