From b0b4a05d44883260b82c0978a01494fdb968b7d3 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 26 Feb 2023 23:22:48 -0700 Subject: py-nbqa: add new package (#35707) --- var/spack/repos/builtin/packages/py-nbqa/package.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-nbqa/package.py diff --git a/var/spack/repos/builtin/packages/py-nbqa/package.py b/var/spack/repos/builtin/packages/py-nbqa/package.py new file mode 100644 index 0000000000..0d9683b45b --- /dev/null +++ b/var/spack/repos/builtin/packages/py-nbqa/package.py @@ -0,0 +1,21 @@ +# 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 PyNbqa(PythonPackage): + """Run any standard Python code quality tool on a Jupyter Notebook.""" + + homepage = "https://github.com/nbQA-dev/nbQA" + pypi = "nbqa/nbqa-1.6.3.tar.gz" + + version("1.6.3", sha256="5394a29fc6d27b9a950c0a36d2d9de25de980be9acfe2a3f3aea0d27b5f7fec1") + + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-ipython@7.8:", type=("build", "run")) + depends_on("py-tokenize-rt@3.2:", type=("build", "run")) + depends_on("py-tomli", type=("build", "run")) -- cgit v1.2.3-70-g09d2