blob: e1df414e80ea6d684d25f12b9e70cb2c53a7d720 (
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 PyRuff(PythonPackage):
"""An extremely fast Python linter, written in Rust."""
homepage = "https://beta.ruff.rs/docs"
pypi = "ruff/ruff-0.0.276.tar.gz"
git = "https://github.com/astral-sh/ruff.git"
version("0.1.6", sha256="1b09f29b16c6ead5ea6b097ef2764b42372aebe363722f1605ecbcd2b9207184")
version("0.0.276", sha256="d456c86eb6ce9225507f24fcc7bf72fa031bb7cc750023310e62889bf4ad4b6a")
depends_on("py-maturin@1", type="build")
# Found in Cargo.toml
depends_on("rust@1.71:", when="@0.1.6:", type="build")
depends_on("rust@1.70:", when="@0.0.276:", type="build")
|