From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH 6/18] gnu: Add python-beautifulsoup4 Date: Mon, 15 Feb 2016 15:28:03 -0800 Message-ID: <87io1psge4.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSYp-0003Y6-Mk for guix-devel@gnu.org; Mon, 15 Feb 2016 18:28:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVSYm-0008CW-Eg for guix-devel@gnu.org; Mon, 15 Feb 2016 18:28:07 -0500 Received: from dustycloud.org ([50.116.34.160]:39422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSYm-0008CS-A0 for guix-devel@gnu.org; Mon, 15 Feb 2016 18:28:04 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id E109A26676 for ; Mon, 15 Feb 2016 18:28:03 -0500 (EST) Content-Disposition: inline; filename=0006-gnu-Add-python-beautifulsoup4.patch 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org >From 12fea50a946441277e38cc6e7ef266c08738193e Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 13 Feb 2016 18:35:57 -0800 Subject: [PATCH 06/18] gnu: Add python-beautifulsoup4 * gnu/packages/python.scm (python-beautifulsoup4, python2-beautifulsoup4): New variables. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3ef552d..d7498dd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4573,6 +4573,39 @@ libxml2 and libxslt.") (define-public python2-lxml (package-with-python2 python-lxml)) +;; beautifulsoup4 has a totally different namespace than 3.x, +;; and pypi seems to put it under its own name, so I guess we should too +(define-public python-beautifulsoup4 + (package + (name "python-beautifulsoup4") + (version "4.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "beautifulsoup4" version)) + (sha256 + (base32 + "1d36lc4pfkvl74fmzdib2nqnvknm0jddgf2n9yd7im150qyh3m47")))) + (build-system python-build-system) + (inputs + `(("python-lxml" ,python-lxml) + ("python-html5lib" ,python-html5lib))) + (home-page + "http://www.crummy.com/software/BeautifulSoup/bs4/") + (synopsis + "Python screen-scraping library") + (description + "HTML/XML parser for quick-turnaround applications like screen-scraping. +Can parse even extremely broken HTML.") + (license bsd-3) + (properties `((python2-variant . ,(delay python2-beautifulsoup4)))))) + +(define-public python2-beautifulsoup4 + (package + (inherit (package-with-python2 + (strip-python2-variant python-beautifulsoup4))) + (inputs `(("python2-setuptools" ,python2-setuptools))))) + (define-public python2-pil (package (name "python2-pil") -- 2.6.3