From: Christopher Allan Webber <cwebber@dustycloud.org>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 6/18] gnu: Add python-beautifulsoup4
Date: Fri, 19 Feb 2016 16:00:39 -0800 [thread overview]
Message-ID: <87wpq0nt0q.fsf@dustycloud.org> (raw)
In-Reply-To: <20160216014548.GF3984@jasmine>
Leo Famulari writes:
>> +;; 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)))
>
> I didn't find these necessary for the build process and test suite. Are
> you sure they aren't supposed to be provided by the application that
> uses beautifulsoup4?
I think you're right in that they're optional, and can be provided or
not with the application that uses it. I removed them.
>> + (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.")
>
> How about this:
>
> "Beautiful Soup is a Python library designed for rapidly setting up
> screen-scraping projects. It offers Pythonic idioms for navigating,
> searching, and modifying a parse tree, providing a toolkit for
> dissecting a document and extracting what you need. It automatically
> converts incoming documents to Unicode and outgoing documents to UTF-8."
That's much better, thanks!
>> + (license bsd-3)
>
> It uses the Expat license, and has some code from html5lib, which is
> also Expat.
Eep, thanks for the catch.
>> + (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
>>
>>
New patch of this and a bunch of others with these fixes coming as soon
as I finish churning through all this feedback ;)
next prev parent reply other threads:[~2016-02-20 0:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-15 23:28 [PATCH 6/18] gnu: Add python-beautifulsoup4 Christopher Allan Webber
2016-02-16 1:45 ` Leo Famulari
2016-02-20 0:00 ` Christopher Allan Webber [this message]
2016-02-20 2:31 ` Christopher Allan Webber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpq0nt0q.fsf@dustycloud.org \
--to=cwebber@dustycloud.org \
--cc=guix-devel@gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.