From patchwork Tue Jun 22 13:33:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danial Behzadi X-Patchwork-Id: 30630 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 373B827BC78; Tue, 22 Jun 2021 16:17:19 +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, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 AF89627BC81 for ; Tue, 22 Jun 2021 16:17:18 +0100 (BST) Received: from localhost ([::1]:37770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvi9N-0007Zy-Gr for patchwork@mira.cbaines.net; Tue, 22 Jun 2021 11:17:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvhqk-0007va-4o for guix-patches@gnu.org; Tue, 22 Jun 2021 10:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvhqj-0007nf-SL for guix-patches@gnu.org; Tue, 22 Jun 2021 10:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvhqj-0001Es-So for guix-patches@gnu.org; Tue, 22 Jun 2021 10:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49170] [PATCH] New package: python-fire Resent-From: Danial Behzadi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 22 Jun 2021 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49170 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49170@debbugs.gnu.org Cc: Danial Behzadi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16243738264693 (code B ref -1); Tue, 22 Jun 2021 14:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Jun 2021 14:57:06 +0000 Received: from localhost ([127.0.0.1]:39653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvhpq-0001Dd-Da for submit@debbugs.gnu.org; Tue, 22 Jun 2021 10:57:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:56070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvgXX-0006oz-J8 for submit@debbugs.gnu.org; Tue, 22 Jun 2021 09:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvgXX-00055R-Bl for guix-patches@gnu.org; Tue, 22 Jun 2021 09:34:07 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:34509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvgXV-0003Dj-Bu for guix-patches@gnu.org; Tue, 22 Jun 2021 09:34:07 -0400 Received: by mail-ej1-x62b.google.com with SMTP id hz1so12015017ejc.1 for ; Tue, 22 Jun 2021 06:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HEdSzmJ+9sjfqF3Y8ut+J7NKVBGOcn4rM7sccf0GOOc=; b=Fmzfvy/I5SsRBYhCEy1AI+Fbvk6eciooE5X62IH7xw6UCnOZlQiEQSAoZwF5OyzdsW 4MIfpSFYVRJYaAYpjq/Wdhl08XvCAEyFAQKPMVpVhVjMZUdea3jk8BZYznaLl55zDXxy gHYiLb8iWT2plW7jV634Ms8OB6Rj/266uCYIBpyl4fyv521tQPgtRAgZSdtYP6cGg9u3 RmfFhr4JIAdKZLT4ZRvEUlMvGfu0YbFI7XKUTUZUKRsq6lblTDsYFt6K4EVk75woBdnV OjWDDOV7xy28YWU7Smms0P5n43vnVlzbZ8CvmiqdYoXLhFjdu8vmzomoPtVaPFybN9pl XfyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=HEdSzmJ+9sjfqF3Y8ut+J7NKVBGOcn4rM7sccf0GOOc=; b=hdIwABUK7fcGrS4emPCFlIm4IPPM5+IqkDvpBtwm1C384zzBfVL0G9GHIRs8QjUBVq 7o3NjqL36iJnoHwBGfaorAUmrfUYZ7ulP777PBy9aZ5QV6H4+7S97cXpKrmLYan5NdUb izHIRWrMJUFouUsTGJynvdi3SdEfTQ4Yx0gSRmouh06+/eB0E/Hberiydzn4vrECI53z y7oe9AqKc7fTIkan0J1yDaIwDYQqMoW3BwG14AX0lguQPY2U7KII+nQhQCOcO1P4sR6G 4eNWFlLJhdavCVucrJprcxTH+9yZldHaPaA/FtwHVZNfrnMuC1oXEruiWud9PQXWmyZP i7Uw== X-Gm-Message-State: AOAM5304j9UAimqUmnrDeYhN3/jVPvIiIzGVPNy5+O6o1Cp+JP2LxxrA ViZxLUp+D+zuopukDK/zAL+qVIiP5+zu9g== X-Google-Smtp-Source: ABdhPJwCsuVQ00mUX9awzuwPYVYiAJmiInGD6xzlTiTFPtcYlYAk/wCTED5aZf1lJwwSQDbhuluVTA== X-Received: by 2002:a17:906:f285:: with SMTP id gu5mr4097026ejb.226.1624368840511; Tue, 22 Jun 2021 06:34:00 -0700 (PDT) Received: from ThinkPad-T430.lan ([87.247.180.125]) by smtp.googlemail.com with ESMTPSA id t5sm6173511eje.29.2021.06.22.06.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 06:34:00 -0700 (PDT) From: Danial Behzadi Date: Tue, 22 Jun 2021 18:03:26 +0430 Message-Id: <20210622133326.346547-1-dani.behzi@ubuntu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=dani.behzi@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 22 Jun 2021 10:57:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 22 Jun 2021 11:17:09 -0400 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 --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1268ff257a..7ce0ada5ea 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1410,6 +1410,43 @@ the version levels, and check whether any given string is a proper semantic version identifier.") (license license:bsd-3))) +(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 + "Python Fire is a library for automatically generating command line interfaces + (CLIs) from absolutely any Python object. + + * Python Fire is a simple way to create a CLI in Python. + * Python Fire is a helpful tool for developing and debugging Python code. + * Python Fire helps with exploring existing code or turning other people's + code into a CLI. + * Python Fire makes transitioning between Bash and Python easier. + * Python Fire makes using a Python REPL easier by setting up the REPL with + the modules and variables you'll need already imported and created.") + (home-page "https://github.com/google/python-fire") + (license license:asl2.0))) + (define-public python2-semantic-version (package-with-python2 python-semantic-version))