diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2018-02-14 14:26:54 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-02-15 17:18:43 +0100 |
commit | 8b2ad13b1952892adb1222ab69592c81b7be9a25 (patch) | |
tree | abda883ac719374c8241c6d6c28bb7faa5faab4c /gnu | |
parent | e0355894821b494c98b558cbf4239046a4e1f20a (diff) | |
download | guix-8b2ad13b1952892adb1222ab69592c81b7be9a25.tar.gz |
gnu: Add python-tokenize-rt.
* gnu/packages/python.scm (python-tokenize-rt): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python.scm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8c239c3f11..18aa4f5900 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -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))) |