From patchwork Thu Aug 12 01:31:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32065 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 3AA7427BC82; Thu, 12 Aug 2021 02:32:15 +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 00C2627BC78 for ; Thu, 12 Aug 2021 02:32:15 +0100 (BST) Received: from localhost ([::1]:44642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDzZu-0005Zd-2g for patchwork@mira.cbaines.net; Wed, 11 Aug 2021 21:32:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDzZi-0005YA-SJ for guix-patches@gnu.org; Wed, 11 Aug 2021 21:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDzZi-0002ca-L7 for guix-patches@gnu.org; Wed, 11 Aug 2021 21:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDzZi-0003sj-Hj for guix-patches@gnu.org; Wed, 11 Aug 2021 21:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50021] [PATCH 2/7] gnu: Add python-iniparse. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Aug 2021 01:32: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.162873190714858 (code B ref 50021); Thu, 12 Aug 2021 01:32:02 +0000 Received: (at 50021) by debbugs.gnu.org; 12 Aug 2021 01:31:47 +0000 Received: from localhost ([127.0.0.1]:37016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDzZT-0003ra-9u for submit@debbugs.gnu.org; Wed, 11 Aug 2021 21:31:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDzZR-0003rA-Mh for 50021@debbugs.gnu.org; Wed, 11 Aug 2021 21:31:46 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2B271240026 for <50021@debbugs.gnu.org>; Thu, 12 Aug 2021 03:31:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628731900; bh=fN56VhN4I27lm0EDW8nSbU5L1sWoQd5r8NFnoJjV+tE=; h=From:To:Cc:Subject:Date:From; b=MOFWbd1hrY15YnRlYIY5Ww8sYLFI8HTVz9KJlC334SXotxwdW32lEB5wQOrdlw8MG iMlmxwhI8IErrgtQJth9+U9Z24dhv7wB/0H44pnSsPWkFKTVB9SnoJC5fEMVV9rAdS eVWeHTvFSoS5+T4PUiZPYr6jtfCqmrsIveP3VlgqnrPLhJp2CT1oHDFOX+5d0lcgx3 FTgEMlqCMZFkN4rcdpIKC9m14ErTzs0p8uT337l2GTzyOzrkh5IpAxY/i42Lq0xDUS JOm7MGrYnJOqkqADqTplsPp1tk+0HV879LNSKNSYYpylzDBD1FfELHv2igJL5iCzUn eNkIZNa2zki4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlTgH3HVRz6tm6; Thu, 12 Aug 2021 03:31:39 +0200 (CEST) From: Vinicius Monego Date: Thu, 12 Aug 2021 01:31:18 +0000 Message-Id: <20210812013123.44869-2-monego@posteo.net> In-Reply-To: <20210812013123.44869-1-monego@posteo.net> References: <20210812013123.44869-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 6cdfc94fc2..22341eda37 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17729,6 +17729,38 @@ current test, while only declaring the test-specific fields") PLY, a Lex/YACC-style parser generator toolkit for Python.") (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")