From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +CbVKaW1jGVSHAEAkFu2QA (envelope-from ) for ; Thu, 28 Dec 2023 00:39:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2AugJqW1jGWGagEAqHPOHw (envelope-from ) for ; Thu, 28 Dec 2023 00:39:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="bGZZi1/Y"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703720357; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=FwqZi5DsZ4k0tGqLDQzGomNznnJKDYBrpPj1OMUGRUc=; b=piVKQsJabL0xymk0yWKm5F8ILENpRHygui0NUiv7SC8L9P+8Y0Iyd0LJIOOZHH2h9AS1kj jlcDWzvTasy9BZJxnyMv6tF7PU09sZDN0+uhOEhJr2J0Y85FouUoO5llhIOqVu7sdviPL4 ABjm4wL06kPuqWYOuWQW+4TsjbKmjSWm/3xFCc0dKQ88iDz3h7MHGMw8vKVZhY5i9gmHm0 CmEyLjsobt2ej+EnRZ9zHXaoVAFgzQX0vIcjZLeFsQMkITOlXo5xO4t38fb72sOvJQ/2om 9rXAi/tdrub2XlF5MH8VaA3xQs9d6SavQw+SN85jHbziW0PYmgKnyEFrhBV50g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703720357; a=rsa-sha256; cv=none; b=ILcVeYjCpAKWuda63XU5dSUdmOW8oH0FBYj+rNnjVw2+f2CgTj6KC7Wutk9X8oeTVAaf/5 MkBgYVQ8oj1LV3CjKyJc02nnHXC+zjcwko4F1mb5KuumaxdGtFyZnjf3oZDvtnxdpXWMNR CGx/B+yNFROdaiqhundFQyAHc2tsoyNfLpr2Vw/IhCagYI2hTPmQMwRp8bzJVgXEAL557A RE56QZ+l+n1+Bh1WH8y2W29Onh/MkIh6HcJLT2SvbVvqXwXwX0t6NAfDQh4aXZLtY0vggz qLlqTNlo7FXVXT1AmyYw4adNd3cyWzEYAVe7mZclV/Z2gCyO/pfTfoIQ8OLGAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="bGZZi1/Y"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20BDD246C7 for ; Thu, 28 Dec 2023 00:39:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIdUO-0005G9-Cb; Wed, 27 Dec 2023 18:39:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIdUN-0005Fw-ML for guix-patches@gnu.org; Wed, 27 Dec 2023 18:39:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIdUN-00022q-EN for guix-patches@gnu.org; Wed, 27 Dec 2023 18:39:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIdUL-0003Mq-Sg for guix-patches@gnu.org; Wed, 27 Dec 2023 18:39:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68071] [PATCH] gnu: Add python-ast-decompiler. Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Dec 2023 23:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68071 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68071@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170372030312869 (code B ref -1); Wed, 27 Dec 2023 23:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2023 23:38:23 +0000 Received: from localhost ([127.0.0.1]:38070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIdTi-0003LU-M2 for submit@debbugs.gnu.org; Wed, 27 Dec 2023 18:38:22 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIdTg-0003LC-4z for submit@debbugs.gnu.org; Wed, 27 Dec 2023 18:38:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIdTb-0004zQ-JN for guix-patches@gnu.org; Wed, 27 Dec 2023 18:38:15 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rIdTQ-0001m5-6H for guix-patches@gnu.org; Wed, 27 Dec 2023 18:38:15 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4T0p3W2Xr4z9sWv for ; Thu, 28 Dec 2023 00:37:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1703720279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=FwqZi5DsZ4k0tGqLDQzGomNznnJKDYBrpPj1OMUGRUc=; b=bGZZi1/YL7kx1RgkbzV0v/9gmJzTf7dTEOpd8sCsUvHZxhQiAECK5K/rJIi72/L0qv/iXd aAgawjXxBRLLNtbb4O7MjXmZvQTCeWlCZQM6R+AQoVkjRcB5JAQayM+Z7pJbfPuYw/UdC6 gKHE1jsnGeS/AizmILAxNeA0lQk1KXiKDOQmFjxNQI56RiRusNMfBWxIvqs3ySR5X0MrPO iQI7lwJlW7GrM1xw1vLJ4luf3Y2shLPvvvznqG3KR7U0KxfyOcOlPIqVzPiFx3P5r/Ou8H mohPiC2yqhcDosT/Ea8CBOXZaVZZdGwzl8lQRDcAwY0IdlTnMx+2BAgkP2IPKA== From: Troy Figiel Date: Thu, 28 Dec 2023 00:31:42 +0100 Message-ID: <87r0j7cj3f.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4T0p3W2Xr4z9sWv Received-SPF: pass client-ip=80.241.56.161; envelope-from=troy@troyfigiel.com; helo=mout-p-103.mailbox.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.35 X-Spam-Score: -5.35 X-Migadu-Queue-Id: 20BDD246C7 X-Migadu-Scanner: mx12.migadu.com X-TUID: AxYyUokBJrP2 * gnu/packages/python-xyz.scm (python-ast-decompiler): New variable. Change-Id: Id0f47c866e72c9f7053da47fdd7aea840a191e62 --- 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 cab44be011..3ad1db7581 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11021,6 +11021,34 @@ (define-public python-pure-eval 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") base-commit: 5bd80ccd69047b1777749e24d4adf2c951b5d14b -- 2.40.1