[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/11: gnu: Add python-ast-decompiler.
From: |
guix-commits |
Subject: |
11/11: gnu: Add python-ast-decompiler. |
Date: |
Thu, 28 Dec 2023 04:36:53 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit bc509aba838780502b83f7fc3d2aee72903656f2
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Thu Dec 28 00:31:42 2023 +0100
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>
---
gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 85a97eb633..ee689809a3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11021,6 +11021,34 @@ MEDLINE XML repository.")
abstract syntax tree (AST) nodes without side effects.")
(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
(package
(name "python-asttokens")
- branch master updated (931d893c55 -> bc509aba83), guix-commits, 2023/12/28
- 03/11: gnu: Add rust-compiletest-rs-0.10., guix-commits, 2023/12/28
- 05/11: gnu: Add rust-rpds-1., guix-commits, 2023/12/28
- 07/11: gnu: cdparanoia: Fix cross-compiling., guix-commits, 2023/12/28
- 11/11: gnu: Add python-ast-decompiler.,
guix-commits <=
- 09/11: gnu: Add python-pytest-cookies., guix-commits, 2023/12/28
- 01/11: gnu: Add rust-unsize-1., guix-commits, 2023/12/28
- 02/11: gnu: Add rust-triomphe-0.1., guix-commits, 2023/12/28
- 04/11: gnu: Add rust-archery-1., guix-commits, 2023/12/28
- 06/11: gnu: Add python-rpds-py., guix-commits, 2023/12/28
- 08/11: gnu: sssd: Update to 2.9.3., guix-commits, 2023/12/28
- 10/11: gnu: python-flake8-isort: Update to 6.1.0., guix-commits, 2023/12/28