py-pyspice: new package (#50282)

This commit is contained in:
Lydéric Debusschère 2025-05-05 09:39:54 +02:00 committed by GitHub
parent f665f4c41b
commit 2504a76079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,29 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyPyspice(PythonPackage):
"""Simulate electronic circuit using Python and the Ngspice / Xyce simulators"""
homepage = "https://github.com/PySpice-org/PySpice"
pypi = "PySpice/PySpice-1.5.tar.gz"
maintainers("LydDeb")
license("GPL-3.0", checked_by="LydDeb")
version("1.5", sha256="d28448accad98959e0f5932af8736e90a1f3f9ff965121c6881d24cdfca23d22")
depends_on("c", type="build")
depends_on("py-setuptools", type="build")
depends_on("py-pyyaml@5.3:", type=("build", "run"))
depends_on("py-cffi@1.14:", type=("build", "run"))
depends_on("py-matplotlib@3.2:", type=("build", "run"))
depends_on("py-numpy@1.18:", type=("build", "run"))
depends_on("py-ply@3.11:", type=("build", "run"))
depends_on("py-scipy@1.4:", type=("build", "run"))
depends_on("py-requests@2.23:", type=("build", "run"))