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.
This commit is contained in:
Leo Famulari 2016-10-28 13:09:56 -04:00
parent 92c3ef2cf3
commit 5f37f0b66e
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 12 additions and 1 deletions

View File

@ -4823,6 +4823,16 @@ libxml2 and libxslt.")
(base32 (base32
"1rf94360s8pmn37vxqjl0g74krq2p6nj3wbn6pj94ik6ny44q24f")))) "1rf94360s8pmn37vxqjl0g74krq2p6nj3wbn6pj94ik6ny44q24f"))))
(build-system python-build-system) (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 (home-page
"http://www.crummy.com/software/BeautifulSoup/bs4/") "http://www.crummy.com/software/BeautifulSoup/bs4/")
(synopsis (synopsis
@ -4840,7 +4850,8 @@ converts incoming documents to Unicode and outgoing documents to UTF-8.")
(package (package
(inherit (package-with-python2 (inherit (package-with-python2
(strip-python2-variant python-beautifulsoup4))) (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 (define-public python2-cssutils
(package (package