diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-31 00:57:45 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:22 +0100 |
| commit | cc2083a785f34fa32647282bc12d0ab7ead932be (patch) | |
| tree | f9b0fcebe8166a6b4f920165a759633ed784cc8e /gnu/packages/python-build.scm | |
| parent | 978e8c588d56def2431c870215be3aa1ca26d743 (diff) | |
gnu: python-pygments: Move to (gnu packages python-build).
* gnu/packages/python-xyz.scm (python-pygments, python-pygments-boostrap): Move from here…
* gnu/packages/python-build.scm (python-pygments, python-pygments-boostrap): …to here.
* gnu/packages/books.scm: Adapt modules.
* gnu/packages/lisp-xyz.scm: Adapt modules.
* gnu/packages/ruby-xyz.scm: Adapt modules.
Change-Id: Id73c1d536c48c490bb7444f87cc6b89d6a79cb38
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-build.scm')
| -rw-r--r-- | gnu/packages/python-build.scm | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index ce242a332d2..86e48d34a37 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm | |||
| @@ -147,9 +147,9 @@ Language (TOML) configuration files.") | |||
| 147 | write-only counterpart to Tomli, which is a read-only TOML parser.") | 147 | write-only counterpart to Tomli, which is a read-only TOML parser.") |
| 148 | (license license:expat))) | 148 | (license license:expat))) |
| 149 | 149 | ||
| 150 | (define-public python-pygments-bootstrap | 150 | (define-public python-pygments |
| 151 | (package | 151 | (package |
| 152 | (name "python-pygments-bootstrap") | 152 | (name "python-pygments") |
| 153 | (version "2.19.1") | 153 | (version "2.19.1") |
| 154 | (source | 154 | (source |
| 155 | (origin | 155 | (origin |
| @@ -159,15 +159,41 @@ write-only counterpart to Tomli, which is a read-only TOML parser.") | |||
| 159 | (base32 | 159 | (base32 |
| 160 | "07qm8mx3y5r8ri6zpn0hp9zx5g02bydhi7pkv54hdp3nhlm6vhb1")))) | 160 | "07qm8mx3y5r8ri6zpn0hp9zx5g02bydhi7pkv54hdp3nhlm6vhb1")))) |
| 161 | (build-system pyproject-build-system) | 161 | (build-system pyproject-build-system) |
| 162 | (arguments (list #:tests? #f)) | 162 | (arguments |
| 163 | (list | ||
| 164 | #:test-flags | ||
| 165 | ;; 4568 passed, 16 skipped, 597 deselected | ||
| 166 | ;; | ||
| 167 | ;; Ignore tests requiring "wcag_contrast_ratio" | ||
| 168 | #~(list "--ignore=tests/contrast/test_contrasts.py" | ||
| 169 | ;; Tests fail with not matched diff. | ||
| 170 | "--ignore=tests/examplefiles/awk/test.awk" | ||
| 171 | "--ignore=tests/examplefiles/bash/example.sh" | ||
| 172 | "--ignore=tests/examplefiles/make/Makefile" | ||
| 173 | "--ignore=tests/examplefiles/phix/example.exw" | ||
| 174 | "--ignore=tests/examplefiles/sed/all_sorts_of_syntax.sed" | ||
| 175 | "--ignore=tests/examplefiles/sed/count_words.sed" | ||
| 176 | "--ignore=tests/examplefiles/sed/increment_number.sed" | ||
| 177 | "--ignore=tests/examplefiles/sed/reverse.sed" | ||
| 178 | "--ignore=tests/examplefiles/slurm/example.sl" | ||
| 179 | ;; Assertion error to find example file by following symlink: | ||
| 180 | ;; assert p.is_file(), f"Example file {p} not found" | ||
| 181 | "--deselect=tests/test_basic_api.py::test_lexer_classes"))) | ||
| 163 | (native-inputs | 182 | (native-inputs |
| 164 | (list python-hatchling)) | 183 | (list python-hatchling python-pytest-bootstrap)) |
| 165 | (home-page "https://pygments.org/") | 184 | (home-page "https://pygments.org/") |
| 166 | (synopsis "Syntax highlighting") | 185 | (synopsis "Syntax highlighting") |
| 167 | (description | 186 | (description |
| 168 | "Pygments is a syntax highlighting package written in Python.") | 187 | "Pygments is a syntax highlighting package written in Python.") |
| 169 | (license license:bsd-2))) | 188 | (license license:bsd-2))) |
| 170 | 189 | ||
| 190 | (define-public python-pygments-bootstrap | ||
| 191 | (package/inherit python-pygments | ||
| 192 | (name "python-pygments-bootstrap") | ||
| 193 | (native-inputs | ||
| 194 | (list python-hatchling)) | ||
| 195 | (arguments `(#:tests? #f)))) | ||
| 196 | |||
| 171 | (define-public python-pytest-bootstrap | 197 | (define-public python-pytest-bootstrap |
| 172 | (package | 198 | (package |
| 173 | (name "python-pytest-bootstrap") | 199 | (name "python-pytest-bootstrap") |
