summaryrefslogtreecommitdiff
path: root/dev-libs/tree-sitter-css/tree-sitter-css-0.25.0-r1.ebuild
blob: b3021705aa86690fb446c44226018b7b0521c566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

TS_BINDINGS=( python )

DISTUTILS_OPTIONAL=1
inherit tree-sitter-grammar distutils-r1

DESCRIPTION="CSS grammar for Tree-sitter"
HOMEPAGE="https://github.com/tree-sitter/tree-sitter-css"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~riscv"

PATCHES=(
	# https://bugs.gentoo.org/928010
	# Test name beginning with :: is incompatible with tree-sitter >0.22
	"${FILESDIR}"/${PN}-0.20.0-test-selector.patch
)

src_test() {
	tree-sitter-grammar_src_test

	use python && distutils-r1_src_test
}

python_test() {
	epytest bindings/python/tests
}