From patchwork Mon Oct 25 23:16:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34053 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 6C2DF27BBE1; Tue, 26 Oct 2021 00:17:38 +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 7BCEA27BBE3 for ; Tue, 26 Oct 2021 00:17:37 +0100 (BST) Received: from localhost ([::1]:38748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf9Dk-00008V-JT for patchwork@mira.cbaines.net; Mon, 25 Oct 2021 19:17:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf9DC-0008Vk-TB for guix-patches@gnu.org; Mon, 25 Oct 2021 19:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mf9DC-00086O-Iw for guix-patches@gnu.org; Mon, 25 Oct 2021 19:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mf9DC-0006GV-EN for guix-patches@gnu.org; Mon, 25 Oct 2021 19:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50021] [PATCH v2 2/8] gnu: Add python-iniparse. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Oct 2021 23:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50021 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50021@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50021-submit@debbugs.gnu.org id=B50021.163520381624047 (code B ref 50021); Mon, 25 Oct 2021 23:17:02 +0000 Received: (at 50021) by debbugs.gnu.org; 25 Oct 2021 23:16:56 +0000 Received: from localhost ([127.0.0.1]:44608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf9D5-0006Fn-JP for submit@debbugs.gnu.org; Mon, 25 Oct 2021 19:16:55 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf9D3-0006FK-3I for 50021@debbugs.gnu.org; Mon, 25 Oct 2021 19:16:53 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2D754240103 for <50021@debbugs.gnu.org>; Tue, 26 Oct 2021 01:16:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1635203807; bh=yv/AnsWrBfU7gR2hvDYxsqXTYuM5qAVcAMeL/MWNm9U=; h=From:To:Cc:Subject:Date:From; b=EkZMtZv/9O9VJ04qK2xZuSI70CSKMw8I5ALIztqdBCPHhHAL7UasjyjmnzOLCqS27 77Fuu8M36JezUcSbdF0cscs5iL0//LLJBLrQR7UlOL58MhllaamPItu44f1sSHnEzX hQS/a1DzKKTNvrOgq44SbQ77cnC5yKA1NrUw7vSwkyxDW5qrpIPQQWYAxjxG9n9RYD xAnKPaZBPgR5upQAjksLQi6wImHrouMCjGCQyDoE1uVTCABoZYp9sKYJbWdAnMCRv+ NGL0LJvpBzu/MKjbV4MzonjWaHfDKldYojbErvVrCGA4MuGVR//DbLoIwfjEcN+CvC uN2ykZcuBGppg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HdW713tZgz6tmH; Tue, 26 Oct 2021 01:16:44 +0200 (CEST) From: Vinicius Monego Date: Mon, 25 Oct 2021 23:16:10 +0000 Message-Id: <20211025231615.73660-2-monego@posteo.net> In-Reply-To: <20211025231615.73660-1-monego@posteo.net> References: <20211025231615.73660-1-monego@posteo.net> MIME-Version: 1.0 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 * gnu/packages/python-xyz.scm (python-iniparse): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 84ead833eb..e025f7b87b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18490,6 +18490,38 @@ current test, while only declaring the test-specific fields") written in PLY.") (license license:bsd-3))) +(define-public python-iniparse + (package + (name "python-iniparse") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "iniparse" version)) + (sha256 + (base32 "0hm8784r25l5wrl274x65329l0b7pq3vfyq10jssrrr6slwm4blk")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;; FIXME: Some tests are failing. + (propagated-inputs + `(("python-six" ,python-six))) + (home-page "https://github.com/candlepin/python-iniparse") + (synopsis "Accessing and Modifying INI files") + (description "@code{iniparse} is a INI parser for Python which is: + +@itemize +@item Compatible with ConfigParser: Backward compatible implementations of +ConfigParser, RawConfigParser, and SafeConfigParser are included that are +API-compatible with the Python standard library. +@item Preserves structure of INI files: Order of sections & options, +indentation, comments, and blank lines are preserved as far as possible +when data is updated. +@item More convenient: Values can be accessed using dotted notation +(@code{cfg.user.name}), or using container syntax +(@code{cfg['user']['name']).} +@end itemize") + (license license:expat))) + (define-public python-translate-toolkit (package (name "python-translate-toolkit")