ruff: update to 0.5.7.
[void-pkg.git] / srcpkgs / ruff / template
blobcea886755813fb499b5e8d340a64ece032a898db
1 # Template file for 'ruff'
2 pkgname=ruff
3 version=0.5.7
4 revision=1
5 build_style=python3-pep517
6 build_helper="rust qemu"
7 hostmakedepends="maturin cargo"
8 makedepends="rust-std"
9 short_desc="Fast Python linter and code formatter"
10 maintainer="icp <pangolin@vivaldi.net>"
11 license="MIT"
12 homepage="https://docs.astral.sh/ruff/"
13 changelog="https://raw.githubusercontent.com/astral-sh/ruff/main/CHANGELOG.md"
14 distfiles="https://github.com/astral-sh/ruff/archive/refs/tags/${version}.tar.gz"
15 checksum=7ac2fd49222dc31aac0f97a40ea5d1d74dee9a1228ff5d62d603359713d8e0d1
17 post_install() {
18         vlicense LICENSE
19         for shell in bash fish zsh; do
20                 vtargetrun "$DESTDIR"/usr/bin/ruff generate-shell-completion $shell > ruff.$shell
21                 vcompletion ruff.$shell $shell
22         done