mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add python-mechanize.
* gnu/packages/python-xyz.scm (python2-mechanize): Rename to ... (python-mechanize): ... this. Update to 0.4.5. [arguments]: Remove. [propagated-inputs]: Add PYTHON-HTML5LIB. [home-page]: Update to current. [license]: Set to LICENSE:BSD-3. (python2-mechanize): Define in terms of PACKAGE-WITH-PYTHON2.
This commit is contained in:
parent
183858d938
commit
087e760e29
1 changed files with 10 additions and 18 deletions
|
@ -1669,38 +1669,30 @@ (define-public python-schedule
|
||||||
(define-public python2-schedule
|
(define-public python2-schedule
|
||||||
(package-with-python2 python-schedule))
|
(package-with-python2 python-schedule))
|
||||||
|
|
||||||
(define-public python2-mechanize
|
(define-public python-mechanize
|
||||||
(package
|
(package
|
||||||
(name "python2-mechanize")
|
(name "python-mechanize")
|
||||||
(version "0.2.5")
|
(version "0.4.5")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "mechanize" version))
|
(uri (pypi-uri "mechanize" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
|
"1z9kqcwb8gfq2l6i42z624kxpd8692a0c8gw2x5bbm7n848w2mb3"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(propagated-inputs
|
||||||
`(#:python ,python-2 ; apparently incompatible with Python 3
|
`(("python-html5lib" ,python-html5lib)))
|
||||||
#:tests? #f))
|
(home-page "https://github.com/python-mechanize/mechanize")
|
||||||
;; test fails with message
|
|
||||||
;; AttributeError: 'module' object has no attribute 'test_pullparser'
|
|
||||||
;; (python-3.3.2) or
|
|
||||||
;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
|
|
||||||
;; (python-2.7.5).
|
|
||||||
;; The source code is from March 2011 and probably not up-to-date
|
|
||||||
;; with respect to python unit tests.
|
|
||||||
(home-page "http://wwwsearch.sourceforge.net/mechanize/")
|
|
||||||
(synopsis
|
(synopsis
|
||||||
"Stateful programmatic web browsing in Python")
|
"Stateful programmatic web browsing in Python")
|
||||||
(description
|
(description
|
||||||
"Mechanize implements stateful programmatic web browsing in Python,
|
"Mechanize implements stateful programmatic web browsing in Python,
|
||||||
after Andy Lester’s Perl module WWW::Mechanize.")
|
after Andy Lester’s Perl module WWW::Mechanize.")
|
||||||
(license (license:non-copyleft
|
(license license:bsd-3)))
|
||||||
"file://COPYING"
|
|
||||||
"See COPYING in the distribution."))))
|
|
||||||
|
|
||||||
|
(define-public python2-mechanize
|
||||||
|
(package-with-python2 python-mechanize))
|
||||||
|
|
||||||
(define-public python-simplejson
|
(define-public python-simplejson
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue