1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Add python-pytokens.

* gnu/packages/python-xyz.scm (python-pytokens): New variable.

Change-Id: I1757fc076cb104533e4fa4223215615ac9c82d53
This commit is contained in:
Sharlatan Hellseher
2026-03-13 23:11:31 +00:00
parent 1e6a3b089b
commit 97b688fdd1

View File

@@ -2445,6 +2445,42 @@ pyte is a fork of vt102, which was an incomplete pure Python implementation
of VT100 terminal.")
(license license:lgpl3+)))
(define-public python-pytokens
(package
(name "python-pytokens")
(version "0.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tusharsadhwani/pytokens")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0j5ip72ldyazgznbwxzmrp4j4hwlk2x9yvzdk5yaivnkknhqxq0c"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-pytest-config
(lambda _
(substitute* "pyproject.toml"
(("--cov --cov-report=term-missing") ""))))
(add-before 'build 'build-with-cython
(lambda _
(setenv "PYTOKENS_USE_MYPYC" "0"))))))
(native-inputs
(list python-cython
python-pytest
python-setuptools))
(home-page "https://github.com/tusharsadhwani/pytokens")
(synopsis "Spec compliant Python 3.14+ tokenizer")
(description
"This package provides a Fast, spec compliant Python 3.14+ tokenizer that
runs on older Pythons.")
(license license:expat)))
(define-public python-pyxdameraulevenshtein
(package
(name "python-pyxdameraulevenshtein")