summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-nbqa/package.py
blob: 274fca67bbccbe2d64996696a51e751af7820bf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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"

    license("MIT")

    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"))