[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/19: gnu: Add python-beautifulsoup4
From: |
Christopher Allan Webber |
Subject: |
06/19: gnu: Add python-beautifulsoup4 |
Date: |
Mon, 15 Feb 2016 22:08:40 +0000 |
cwebber pushed a commit to branch wip-mediagoblin
in repository guix.
commit d973b9336cb1ac9b116319f63a12667782c306dd
Author: Christopher Allan Webber <address@hidden>
Date: Sat Feb 13 18:35:57 2016 -0800
gnu: Add python-beautifulsoup4
* gnu/packages/python.scm (python-beautifulsoup4, python2-beautifulsoup4):
New variables.
---
gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b6ba98d..cf72842 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")
- branch wip-mediagoblin created (now 509f29a), Christopher Allan Webber, 2016/02/15
- 01/19: gnu: Add python-mako., Christopher Allan Webber, 2016/02/15
- 02/19: gnu: Add python-alembic., Christopher Allan Webber, 2016/02/15
- 03/19: gnu: Add python2-apipkg., Christopher Allan Webber, 2016/02/15
- 04/19: gnu: Add python2-execnet., Christopher Allan Webber, 2016/02/15
- 05/19: gnu: Add python-pytest-xdist., Christopher Allan Webber, 2016/02/15
- 06/19: gnu: Add python-beautifulsoup4,
Christopher Allan Webber <=
- 07/19: gnu: Add python-waitress., Christopher Allan Webber, 2016/02/15
- 08/19: gnu: Add python-wsgiproxy2., Christopher Allan Webber, 2016/02/15
- 09/19: gnu: Add python-pastedeploy, Christopher Allan Webber, 2016/02/15
- 10/19: gnu: Add python-pyquery, Christopher Allan Webber, 2016/02/15
- 11/19: gnu: Add python-webtest., Christopher Allan Webber, 2016/02/15
- 12/19: gnu: Add python-anyjson., Christopher Allan Webber, 2016/02/15
- 13/19: gnu: Add python-amqp., Christopher Allan Webber, 2016/02/15
- 14/19: gnu: Add python-kombu., Christopher Allan Webber, 2016/02/15
- 15/19: gnu: Add python-billiard., Christopher Allan Webber, 2016/02/15
- 16/19: gnu: Add python2-celery., Christopher Allan Webber, 2016/02/15