diff options
author | Leo Famulari <leo@famulari.name> | 2016-10-28 13:09:56 -0400 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-10-28 13:39:37 -0400 |
commit | 5f37f0b66e301210698ab0c0af24453c826ba18a (patch) | |
tree | b70db3557031e822f7ce2122356d8e3717a77f40 /gnu | |
parent | 92c3ef2cf3b297f5469658ef6c0d94e78255d27d (diff) | |
download | guix-5f37f0b66e301210698ab0c0af24453c826ba18a.tar guix-5f37f0b66e301210698ab0c0af24453c826ba18a.tar.gz |
gnu: python-beautifulsoup4: Run the test suite.
* gnu/packages/python.scm (python-beautifulsoup4)[arguments]: Add field
run python-2 -> python-3 conversion script and test suite.
(python2-beautifulsoup4)[arguments]: Specify use of python-2.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f33a2fa11f..1ede56f10a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4823,6 +4823,16 @@ libxml2 and libxslt.") (base32 "1rf94360s8pmn37vxqjl0g74krq2p6nj3wbn6pj94ik6ny44q24f")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; The Python 2 source is the definitive source of beautifulsoup4. We + ;; must use this conversion script when building with Python 3. The + ;; conversion script also runs the tests. + ;; For more information, see the file 'convert-py3k' in the source + ;; distribution. + (replace 'check + (lambda _ (zero? (system* "./convert-py3k"))))))) (home-page "http://www.crummy.com/software/BeautifulSoup/bs4/") (synopsis @@ -4840,7 +4850,8 @@ converts incoming documents to Unicode and outgoing documents to UTF-8.") (package (inherit (package-with-python2 (strip-python2-variant python-beautifulsoup4))) - (native-inputs `(("python2-setuptools" ,python2-setuptools))))) + (native-inputs `(("python2-setuptools" ,python2-setuptools))) + (arguments `(#:python ,python-2)))) (define-public python2-cssutils (package |