py-codebasin: new package (#50549)

This commit is contained in:
John Pennycook 2025-05-20 15:46:47 +01:00 committed by GitHub
parent e46dae9eb6
commit b77d9b87f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,39 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack_repo.builtin.build_systems.python import PythonPackage
from spack.package import *
class PyCodebasin(PythonPackage):
"""An analysis tool providing insight into the portability and
maintainability of an application's source code."""
homepage = "https://intel.github.io/code-base-investigator/"
url = "https://github.com/intel/code-base-investigator/archive/refs/tags/2.0.0.tar.gz"
maintainers("pennycook")
license("BSD-3-Clause", checked_by="pennycook")
version("2.0.0", sha256="f19af5418ab470f1cc22a503f24526ecc7de947f4cdcf897b9c1189d5d97d8e9")
depends_on("cxx", type="build")
depends_on("fortran", type="build")
depends_on("python@3.12:", type=("build", "run"))
depends_on("py-setuptools@64:", type="build")
depends_on("py-setuptools-scm@8:", type="build")
with default_args(type=("build", "run")):
depends_on("py-numpy@2.2.4")
depends_on("py-matplotlib@3.10.1")
depends_on("py-pathspec@0.12.1")
depends_on("py-scipy@1.15.2")
depends_on("py-jsonschema@4.23.0")
depends_on("py-tabulate@0.9.0")
depends_on("py-tqdm@4.67.1")

View File

@ -15,6 +15,7 @@ class PyJsonschema(PythonPackage):
license("MIT", checked_by="wdconinc")
version("4.23.0", sha256="d71497fef26351a33265337fa77ffeb82423f3ea21283cd9467bb03999266bc4")
version("4.22.0", sha256="5b22d434a45935119af990552c862e5d6d564e8f6601206b305a61fdf661a2b7")
version("4.21.1", sha256="85727c00279f5fa6bedbe6238d2aa6403bedd8b4864ab11207d07df3cc1b2ee5")
version("4.20.0", sha256="4f614fd46d8d61258610998997743ec5492a648b33cf478c1ddc23ed4598a5fa")

View File

@ -16,6 +16,9 @@ class PyPathspec(PythonPackage):
license("MPL-2.0")
version("0.12.1", sha256="a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712")
version("0.12.0", sha256="c57e16065a97b7beb175f13c84d27cb05f7b7315741c2fbd5de541042f4ea6e1")
version("0.11.2", sha256="e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3")
version("0.11.1", sha256="2798de800fa92780e33acca925945e9a19a133b715067cf165b8866c15a31687")
version("0.11.0", sha256="64d338d4e0914e91c1792321e6907b5a593f1ab1851de7fc269557a21b30ebbc")
version("0.10.3", sha256="56200de4077d9d0791465aa9095a01d421861e405b5096955051deefd697d6f6")
@ -26,9 +29,10 @@ class PyPathspec(PythonPackage):
version("0.5.5", sha256="72c495d1bbe76674219e307f6d1c6062f2e1b0b483a5e4886435127d0df3d0d3")
version("0.3.4", sha256="7605ca5c26f554766afe1d177164a2275a85bb803b76eba3428f422972f66728")
depends_on("python@3.7:", when="@0.10:", type=("build", "run"))
depends_on("python@3.8:", when="@0.12:", type=("build", "run"))
depends_on("python@3.7:", when="@0.10:0.11", type=("build", "run"))
depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
depends_on("py-flit-core@3.2:3", when="@0.11:", type="build")
depends_on("py-setuptools@40.8:", when="@0.10", type="build")
depends_on("py-setuptools@40.8:", when="@0.10:", type="build")
depends_on("py-setuptools@39.2:", when="@0.9", type="build")
depends_on("py-setuptools", when="@:0.10", type="build")