[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 004/232] gnu: Add python-asttokens.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 004/232] gnu: Add python-asttokens. |
Date: |
Sun, 24 Apr 2022 23:55:30 -0400 |
* gnu/packages/python-xyz.scm (python-asttokens): New variable.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 82340c0155..d3570f45df 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8993,6 +8993,28 @@ (define-public python-pure-eval
abstract syntax tree (AST) nodes without side effects.")
(license license:expat)))
+(define-public python-asttokens
+ (package
+ (name "python-asttokens")
+ (version "2.0.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "asttokens" version))
+ (sha256
+ (base32 "1mglbkikxvnhrk3inbx0v1qzxwd38qjr6l35sn098yicy0ac2m4s"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-six))
+ (native-inputs (list python-astroid python-pytest python-setuptools-scm))
+ (home-page "https://github.com/gristlabs/asttokens")
+ (synopsis "Python library to annotate abstract syntax trees")
+ (description "The @code{asttokens} module annotates Python abstract syntax
+trees (ASTs) with the positions of tokens and text in the source code that
+generated them. It makes it possible for tools that work with logical AST
+nodes to find the particular text that resulted in those nodes, for example
+for automated refactoring or highlighting.")
+ (license license:asl2.0)))
+
(define-public python-ipython
(package
(name "python-ipython")
--
2.34.0
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Maxim Cournoyer, 2022/04/24
- [bug#55104] [PATCH 001/232] gnu: python-ipython: Re-order fields., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 002/232] gnu: python-astroid: Propagate python-typing-extensions., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 004/232] gnu: Add python-asttokens.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 005/232] gnu: Add python-littleutils., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 003/232] gnu: Add python-pure-eval., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 015/232] gnu: Add texlive-makecmds., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 036/232] gnu: Add python-types-toml., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 048/232] gnu: python-pytest-black: Update to 0.3.12., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 008/232] gnu: python-jinja2: Update to 3.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 006/232] gnu: Add python-stack-data., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 007/232] gnu: python-traitlets: Update to 5.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 010/232] gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 042/232] gnu: Add python-types-pytz., Maxim Cournoyer, 2022/04/25