From patchwork Sat Jun 26 19:52:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Danial Behzadi X-Patchwork-Id: 30736 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D50C727BC81; Sat, 26 Jun 2021 20:53:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5B76627BC78 for ; Sat, 26 Jun 2021 20:53:11 +0100 (BST) Received: from localhost ([::1]:49342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxEMY-0003IK-Bd for patchwork@mira.cbaines.net; Sat, 26 Jun 2021 15:53:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxEMQ-0003IB-0G for guix-patches@gnu.org; Sat, 26 Jun 2021 15:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxEMP-0000Wn-Ok for guix-patches@gnu.org; Sat, 26 Jun 2021 15:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxEMP-0002Uc-M5 for guix-patches@gnu.org; Sat, 26 Jun 2021 15:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49170] [PATCH v2]: gnu: Add python-fire References: <20210622133326.346547-1-dani.behzi@ubuntu.com> In-Reply-To: <20210622133326.346547-1-dani.behzi@ubuntu.com> Resent-From: =?utf-8?b?2K/Yp9mG24zYp9mEINio2YfYstin2K/bjA==?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Jun 2021 19:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49170@debbugs.gnu.org Received: via spool by 49170-submit@debbugs.gnu.org id=B49170.16247371439529 (code B ref 49170); Sat, 26 Jun 2021 19:53:01 +0000 Received: (at 49170) by debbugs.gnu.org; 26 Jun 2021 19:52:23 +0000 Received: from localhost ([127.0.0.1]:48666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxELn-0002Td-2G for submit@debbugs.gnu.org; Sat, 26 Jun 2021 15:52:23 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:45626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxELk-0002TQ-6S for 49170@debbugs.gnu.org; Sat, 26 Jun 2021 15:52:21 -0400 Received: by mail-wr1-f48.google.com with SMTP id j2so14789046wrs.12 for <49170@debbugs.gnu.org>; Sat, 26 Jun 2021 12:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:disposition-notification-to :return-receipt-to:message-id:mime-version:content-transfer-encoding :autocrypt; bh=AzNmxmllZ/i0GToUbfLEgMZOALw0Jj61nSL2e2w2nwQ=; b=YMJJFBM6/XlUpvQUXYNtaGOJvOWLYF/t7/ooJ6Ju/YVhJkc5p27ahLkQAiFte27RaA +HaAxW4iRamzOQOlQxuFPS+sktZYX/VBNsVgwr3VfEdXFQS3QLN+byNbpM2OoBNLELxH zvjmSSfSGo3Q7AjRVaN8xhPclOAimsyIzVqyZkHEuSik8dAm8wQhQzfLCxnXKvy2NGUa Csdp7WsN7AB68YQYF+rI9jOVQWqGO0/oSqJwABQ+SCmliuXJ3brCrGFbomTYK6bk3tWV EjUc9AinRHeHwdrq2+qkvWjJovMk8F2c9oqb6fuKcHcrJfXUCUWlfNt/129VUYectLt3 s4mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject :disposition-notification-to:return-receipt-to:message-id :mime-version:content-transfer-encoding:autocrypt; bh=AzNmxmllZ/i0GToUbfLEgMZOALw0Jj61nSL2e2w2nwQ=; b=R4tRIL0t5DsGrsV1NfDv3X15L/tLxO5Ja9R9yI9AIhAUvQfxXfP2T14txM/kerInYc WD4L3EmxSu2ksc6KMFfAnCPSVFhKJQertMtcO4KXOUmlVQtLV7hUrtD1jVhWsEj+inp1 PEg/7m9bYMUctwV63pIxJCt08owJqj8ifWAgmA4AvowZJip0DFvp2SI1T5JaBUwzKjOE e5UFyEXexqxXq+r99h+eb1ReCBxrAoKYaXFgmt1u7BNXloBh/HRpBtQ2naR5vu5EjshO SbCmuRjQxioC6ubvNGG4ui6Klekh259LEJ0gqYnshDwl6DH6YvZ1ZSxX72ZqOsx61cFE h67A== X-Gm-Message-State: AOAM532FdYhjCrfZyHvSoq0BMslm0RgXJOEYyUSX9UmIwCc8gzvapCAJ gGlD8I/VDbZRQUfiqG7v88jDAXtlDC/SRg== X-Google-Smtp-Source: ABdhPJwQi8C4sKWWiLASFz93l7V7xbQThVAfef1XoZGfm9QiimHWbNSRY4LkNlSun3tehxl9H6eGqw== X-Received: by 2002:a5d:4a02:: with SMTP id m2mr18710892wrq.332.1624737133997; Sat, 26 Jun 2021 12:52:13 -0700 (PDT) Received: from [127.0.0.1] ([188.75.123.84]) by smtp.gmail.com with ESMTPSA id a4sm1236250wru.55.2021.06.26.12.52.12 for <49170@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Jun 2021 12:52:13 -0700 (PDT) Date: Sat, 26 Jun 2021 19:52:10 +0000 From: =?utf-8?b?2K/Yp9mG24zYp9mEINio2YfYstin2K/bjA==?= Message-ID: <6F62A6C8-CD81-49A0-BCC1-E1F733B31A61@ubuntu.com> MIME-Version: 1.0 Autocrypt: addr=dani.behzi@ubuntu.com; prefer-encrypt=mutual; keydata= mQENBFKGpdUBCAD1z1PsGJYPWdsRU3euT//QPUh7EGBRGV5TZdLawuZU2+EqFcC7OLn582akk5VA WQSLVoMKfgCiMWzYZsEioTwj0C4CT0RSOwe7WKPOB47AsgbRITInTET59vy6s9XzeNHIOsDCFiS1 RTAVJ7hmgOvbZMkrP/g4vHluko6e+VB2OLyTJXgKFAeJXEFXPyDXuAGoUxP9nEmC/rHqD2b8xr6N KGO48mlDabI/fHMpq/cCp7/LM5ye120S4hWi4wPh/28YeN2PkqJ/v+CH2apnfaFI3ijKzelXGXQX lBdh//vpG87XGp1hlIHpwO0vqiaWy+b3qNIYzwJP30biwOuGwu5LABEBAAG0JkRhbmlhbCBCZWh6 YWRpIDxkYW5pLmJlaHppQHVidW50dS5jb20+iQFYBBMBCgBCAhsDBgsJCAcDAgYVCAIJCgsEFgID AQIeAQIXgAIZARYhBMFKiJJVfERBUOINfraWjvvASS/GBQJeoFFyBQkSzduzAAoJELaWjvvASS/G xGQH/Ren/cepzFyzFoX2ab4gxZu1DmquLoQC5D/F5qgVLPaCNI2C4J0lcBHuOksuXyKX6i/rKr42 zsU+sY8umGBOvAqUtI67wO36FFVbrutK0sAv5IxpsHPhWoxSrJldjG+zhq0zugmaCCoZwLQqd5x3 91jegoRWhBsyKomASLswSWdnqeNKjCcPcUwvnx3ei2nhErZ/OGPoHtUqS8NF69qmvcCanwABHOma TVnmTEnwS0D6z59F8oMP7ap8CNLGZp06kS+WCwr8KzuItqS1GaI9zBjuoTCBmcsHQAGQidoUHcqv QLWZcAxflZFXiXzRjJ4BXyph+uJI6V9bevYDf597B125AQ0EUoal1QEIANce2f/Y2whrrtWHNLq2 Fx2IcWnna4XyY1l0jAaGmYE2x0pwWEv1Pw9ihYJEs8Sce4Sj13kbHlJrnlc81vYKsU1qZgGZnRth GbGp5PebEuoBUEDqe/0Jrv6B1Gdq+Fi1AopUBhNsCiYyHN1h6Sh1YdhsUv1P9rPlLrzM9iTKYI+d SKP9IKAyiYfkM610znxrTzDQgZQQ66fIEIgg0LCbofcuNRZG2lxb4dIncisuYGvW/Ci6PsvVfU8D W5kAC1OdSYUmolXkUOxv0XBZALDJq5vnzAHgPoS5Azou2Q9Wc+aqw2OdGkx/C4vyuXVW2yNo60QM JAVsmvoqdhB/+yNtVy8AEQEAAYkBPAQYAQoAJgIbDBYhBMFKiJJVfERBUOINfraWjvvASS/GBQJe oFHLBQkSzduzAAoJELaWjvvASS/GajYH/1ylL8x+XTu+Oeim1ObBnwceue68qPxk5TGsjZw8n+/8 Pda4+ZP/3fu6FtT2yo3hlrcyc4AmVVgZDt78RG0uFNkjCiBMn4s9JEBc5BCaLW2R8YYM2lhsEmeb Jg4sr0wT4VlKsM2Hb87u/vWIequdwfcqv9OYk+akMwzx3TYiVWIqC1RuL87eMAkDF187/KCE0gAi iMgty9wv4qTXZj6kx9eTio+c+Mk0gAMHkDC1VO/occttsUHD34ciRjV/YwvoYOycX8coC5nP0KpO zi5izzGprkjohfYAbiG+fi3gga6hnqwg3Orrqh20splKeJI8skYDmnuDaehURtQhNyUjq1U= 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Sorry. The previous one was malformed. This is the correct one. From d5bebceecb3e15313fadb59686303a4a46afa1ce Mon Sep 17 00:00:00 2001 From: Danial Behzadi Date: Sat, 26 Jun 2021 15:28:49 -0400 Subject: [PATCH] gnu: Add python-fire. * gnu/packages/python-xyz.scm (python-fire): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6b92200beb..9d5065acd8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -101,6 +101,9 @@ ;;; Copyright © 2021 LibreMiami ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 Danial Behzadi +;;; +;;; Copyright ;;; ;;; This file is part of GNU Guix. ;;; @@ -220,6 +223,44 @@ #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) +(define-public python-fire + (package + (name "python-fire") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fire" version)) + (sha256 + (base32 + "0qka44n88y3qcj7xz0k0f3qb4phcg4z0wvd4jcii9lcr6rvbiqn5")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest", python-pytest))) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ (invoke "pytest")))))) + (inputs + `(("python-six", python-six) + ("python-termcolor", python-termcolor))) + (synopsis "Library for automatically generating command line interfaces") + (description + "Fire is a library for automatically generating command line interfaces +from absolutely any Python object. The following are the advantages: +@itemize +@item A simple way to create a CLI in Python. +@item A helpful tool for developing and debugging Python code. +@item Helps with exploring existing code or turning other people's code into a +command line interface. +@item Makes transitioning between Bash and Python easier. +@item Makes using a Python REPL easier by setting up the REPL with the modules +and variables you'll need already imported and created. +@end itemize") + (home-page "https://github.com/google/python-fire") + (license license:asl2.0))) + (define-public python-twodict (package (name "python-twodict") -- 2.32.0