gnu: Add python-tokenize-rt.

* gnu/packages/python.scm (python-tokenize-rt): New variable.
This commit is contained in:
Ricardo Wurmus 2018-02-14 14:26:54 +01:00 committed by Ricardo Wurmus
parent e035589482
commit 8b2ad13b19
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 21 additions and 0 deletions

View File

@ -12663,3 +12663,24 @@ Week instances stringify to this form.")
(define-public python2-isoweek
(package-with-python2 python-isoweek))
(define-public python-tokenize-rt
(package
(name "python-tokenize-rt")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tokenize-rt" version))
(sha256
(base32
"1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
(build-system python-build-system)
(home-page "https://github.com/asottile/tokenize-rt")
(synopsis "Wrapper around the stdlib tokenize which roundtrips.")
(description
"This Python library is a wrapper around @code{tokenize} from the Python
standard library. It provides two additional tokens @code{ESCAPED_NL} and
@code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
and @code{tokens_to_src} to roundtrip.")
(license license:expat)))