From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH 2/3] gnu: Add python-pyxb. Date: Sat, 17 Sep 2016 11:10:46 +0100 Message-ID: <20160917101047.4597-3-mbakke@fastmail.com> References: <20160917101047.4597-1-mbakke@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blCb7-0004Nz-HN for guix-devel@gnu.org; Sat, 17 Sep 2016 06:11:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blCb3-0006M1-JM for guix-devel@gnu.org; Sat, 17 Sep 2016 06:11:49 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:50762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blCb1-0006Ax-9d for guix-devel@gnu.org; Sat, 17 Sep 2016 06:11:45 -0400 In-Reply-To: <20160917101047.4597-1-mbakke@fastmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: Marius Bakke * gnu/packages/xml.scm (python-pyxb, python2-pyxb): New variables. --- gnu/packages/xml.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 7befad5..793cd2f 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2016 Jan Nieuwenhuizen ;;; Copyright © 2016 ng0 ;;; Copyright © 2016 Tobias Geerinckx-Rice +;;; Copyright © 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -729,6 +730,42 @@ different Unicode encodings which happen automatically during parsing/saving.") (license license:expat))) +(define-public python-pyxb + (package + (name "python-pyxb") + (version "1.2.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "PyXB" version)) + (sha256 + (base32 + "0sgs184mq218li5qqi906hm55zkpqbiyinv9wk6qgqgx813rskq2")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + ;; See https://github.com/pabigot/pyxb/issues/26 ... + (delete-file "tests/trac/test-trac-0091.py") + ;; ...and https://github.com/pabigot/pyxb/pull/58 . + (substitute* "tests/utils/test-utility.py" + (("__NoExt_re = re.compile.*$") + "__NoExt_re = re.compile('(^|\\%s)[^\\.]+$' % os.sep)\n")) + #t))))) + (home-page "http://pyxb.sourceforge.net/") + (synopsis "Python XML Schema Bindings") + (description + "PyXB (\"pixbee\") is a pure Python package that generates Python source +code for classes that correspond to data structures defined by XMLSchema.") + (license (list license:asl2.0 ; Most files. + license:expat ; pyxb/utils/six.py + license:gpl2 ; bundled jquery in doc is dual MIT/GPL2 + license:psfl)))) ; pyxb/utils/activestate.py + +(define-public python2-pyxb + (package-with-python2 python-pyxb)) + (define-public xmlto (package (name "xmlto") -- 2.10.0