mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add python-ast-decompiler.
* gnu/packages/python-xyz.scm (python-ast-decompiler): New variable. Change-Id: Id0f47c866e72c9f7053da47fdd7aea840a191e62 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
5f2a3c3ebc
commit
bc509aba83
1 changed files with 28 additions and 0 deletions
|
@ -11021,6 +11021,34 @@ MEDLINE XML repository.")
|
||||||
abstract syntax tree (AST) nodes without side effects.")
|
abstract syntax tree (AST) nodes without side effects.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public python-ast-decompiler
|
||||||
|
(package
|
||||||
|
(name "python-ast-decompiler")
|
||||||
|
(version "0.7.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "ast_decompiler" version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0dw3fck4ajilphqw4hdpa8pmqxg3jfk2xkmjnk3kx5pqwl3sbhzg"))
|
||||||
|
;; We need to manually create an __init__.py file under the tests/
|
||||||
|
;; directory, since it is not included in the distributed
|
||||||
|
;; version. (See:
|
||||||
|
;; https://github.com/JelleZijlstra/ast_decompiler/issues/52).
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet '(call-with-output-file "tests/__init__.py"
|
||||||
|
(const #t)))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
|
(native-inputs (list python-flit-core python-pytest))
|
||||||
|
(home-page "https://github.com/JelleZijlstra/ast_decompiler")
|
||||||
|
(synopsis
|
||||||
|
"Decompile an @acronym{AST, Abstract Syntax Tree} to Python code")
|
||||||
|
(description
|
||||||
|
"This library provides functionality to decompile @acronym{AST, Abstract
|
||||||
|
Syntax Tree} objects, as generated by the standard library @code{ast} module,
|
||||||
|
to Python code.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public python-asttokens
|
(define-public python-asttokens
|
||||||
(package
|
(package
|
||||||
(name "python-asttokens")
|
(name "python-asttokens")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue