From 65fa71c1b4fb2cacb0adbcbcb685728ae61f8da3 Mon Sep 17 00:00:00 2001 From: Christopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:02:36 +0000 Subject: py-pycm: new package (#43251) Co-authored-by: Harmen Stoppels Signed-off-by: Bernhard Kaindl --- var/spack/repos/builtin/packages/py-art/package.py | 3 ++- var/spack/repos/builtin/packages/py-pycm/package.py | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 var/spack/repos/builtin/packages/py-pycm/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-art/package.py b/var/spack/repos/builtin/packages/py-art/package.py index f173355ffb..c5b6a48eeb 100644 --- a/var/spack/repos/builtin/packages/py-art/package.py +++ b/var/spack/repos/builtin/packages/py-art/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-pycm/package.py b/var/spack/repos/builtin/packages/py-pycm/package.py new file mode 100644 index 0000000000..657047c438 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pycm/package.py @@ -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") -- cgit v1.2.3-70-g09d2