Add geomdl package (#40933)

This commit is contained in:
Adrien Berchet 2023-11-11 22:55:08 +01:00 committed by GitHub
parent 57b63228ce
commit 15f6368c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,26 @@
# 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 PyGeomdl(PythonPackage):
"""Object-oriented pure Python B-Spline and NURBS library."""
homepage = "https://pypi.org/project/geomdl"
pypi = "geomdl/geomdl-5.3.1.tar.gz"
version("5.3.1", sha256="e81a31b4d5f111267b16045ba1d9539235a98b2cff5e4bad18f7ddcd4cb804c8")
depends_on("py-setuptools@40.6.3:", type="build")
# For compiling geomdl.core module
depends_on("py-cython@:2", type="build")
variant("viz", default=False, description="Add viz dependencies")
depends_on("py-numpy@1.15.4:", type="run", when="+viz")
depends_on("py-matplotlib@2.2.3:", type="run", when="+viz")
depends_on("py-plotly", type="run", when="+viz")