py-pycm: new package (#43251)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
Signed-off-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
This commit is contained in:
Christopher Christofi 2024-03-20 18:02:36 +00:00 committed by GitHub
parent 9802649716
commit 65fa71c1b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 1 deletions

View File

@ -16,4 +16,5 @@ class PyArt(PythonPackage):
version("6.1", sha256="6ab3031e3b7710039e73497b0e750cadfe04d4c1279ce3a123500dbafb9e1b64")
depends_on("python@3.5:")
depends_on("python@3.5:", type=("build", "run"))
depends_on("py-setuptools", type="build")

View File

@ -0,0 +1,21 @@
# Copyright 2013-2024 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 PyPycm(PythonPackage):
"""Multi-class confusion matrix library in Python."""
homepage = "https://www.pycm.io"
pypi = "pycm/pycm-4.0.tar.gz"
license("MIT")
version("4.0", sha256="839e217eeb9a093be633ea746c5ca8b7ab6591d978762face892473c9f28959d")
depends_on("py-art@1.8:", type=("build", "run"))
depends_on("py-numpy@1.9.0:", type=("build", "run"))
depends_on("py-setuptools", type="build")