From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTBkF-0005jY-VA for guix-patches@gnu.org; Sat, 01 Dec 2018 15:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTBkB-0000Cu-1d for guix-patches@gnu.org; Sat, 01 Dec 2018 15:20:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:53029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTBkA-0000C6-V3 for guix-patches@gnu.org; Sat, 01 Dec 2018 15:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTBkA-0004KC-Hy for guix-patches@gnu.org; Sat, 01 Dec 2018 15:20:02 -0500 Subject: [bug#33565] [PATCH] gnu: Add python-xmltodict. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTBj6-0005fc-Br for guix-patches@gnu.org; Sat, 01 Dec 2018 15:18:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTBj1-0008Az-W6 for guix-patches@gnu.org; Sat, 01 Dec 2018 15:18:56 -0500 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:36388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTBj1-0008AM-OS for guix-patches@gnu.org; Sat, 01 Dec 2018 15:18:51 -0500 Received: by mail-lj1-x243.google.com with SMTP id g11-v6so7968599ljk.3 for ; Sat, 01 Dec 2018 12:18:51 -0800 (PST) From: Oleg Pykhalov Date: Sat, 1 Dec 2018 23:18:32 +0300 Message-Id: <20181201201832.6344-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33565@debbugs.gnu.org * gnu/packages/xml.scm (python-xmltodict, python2-xmltodict): New variables. --- gnu/packages/xml.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 347ac878a3..1bb6ba48aa 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -39,6 +39,7 @@ (define-module (gnu packages xml) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages curl) #:use-module (gnu packages gnupg) @@ -2133,3 +2134,27 @@ It converts the procedure call into an XML document, sends it to a remote server using HTTP, and gets back the response as XML. This library provides a modular implementation of XML-RPC for C and C++.") (license (list license:psfl license:expat)))) + +(define-public python-xmltodict + (package + (name "python-xmltodict") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xmltodict" version)) + (sha256 + (base32 + "1pxh4yjhvmxi1h6f92skv41g4kbsws3ams57150kzn18m907v3cg")))) + (build-system python-build-system) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-nose" ,python-nose))) + (home-page "https://github.com/martinblech/xmltodict") + (synopsis "Work with XML like you are working with JSON") + (description "This package provides a Python library to work with XML like +you are working with JSON") + (license license:expat))) + +(define-public python2-xmltodict + (package-with-python2 python-xmltodict)) -- 2.19.1