mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 19:40:46 +02:00
gnu: python-unittest2: Update to 1.1.0.
* gnu/packages/python.scm (python-unittest2): Update to 1.1.0. [source]: Use PYPI-URI. Add two patches. [arguments]: Add phase to run tests. [propagated-inputs]: Add PYTHON-SIX and PYTHON-TRACEBACK2. (python2-unittest2): Use 'package-with-python2'. * gnu/packages/patches/python2-unittest2-remove-argparse.patch: Rename to ... * gnu/packages/patches/python2-unittest2-remove-argparse.patch: ... this. * gnu/packages/patches/python-unittest2-python3-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
This commit is contained in:
parent
5db49f7ac8
commit
7439173f2c
4 changed files with 52 additions and 26 deletions
|
@ -1866,17 +1866,27 @@ interfaces and processes.")
|
|||
(define-public python-unittest2
|
||||
(package
|
||||
(name "python-unittest2")
|
||||
(version "0.5.1")
|
||||
(version "1.1.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
|
||||
version ".tar.gz"))
|
||||
(uri (pypi-uri "unittest2" version))
|
||||
(patches
|
||||
(search-patches "python-unittest2-python3-compat.patch"
|
||||
"python-unittest2-remove-argparse.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
|
||||
"0y855kmx7a8rnf81d3lh5lyxai1908xjp0laf4glwa4c8472m212"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(zero? (system* "python" "-m" "unittest2" "discover" "--verbose")))))))
|
||||
(propagated-inputs
|
||||
`(("python-six" ,python-six)
|
||||
("python-traceback2" ,python-traceback2)))
|
||||
(home-page "http://pypi.python.org/pypi/unittest2")
|
||||
(synopsis "Python unit testing library")
|
||||
(description
|
||||
|
@ -1885,26 +1895,7 @@ standard library.")
|
|||
(license license:psfl)))
|
||||
|
||||
(define-public python2-unittest2
|
||||
(package (inherit python-unittest2)
|
||||
(name "python2-unittest2")
|
||||
(version "1.1.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://pypi.python.org/packages/source/u/unittest2/unittest2-"
|
||||
version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0y855kmx7a8rnf81d3lh5lyxai1908xjp0laf4glwa4c8472m212"))
|
||||
(patches
|
||||
(search-patches "python2-unittest2-remove-argparse.patch"))))
|
||||
(propagated-inputs
|
||||
`(("python2-six" ,python2-six)
|
||||
("python2-traceback2" ,python2-traceback2)))
|
||||
(arguments
|
||||
`(#:python ,python-2
|
||||
#:tests? #f)))) ; no setup.py test command
|
||||
(package-with-python2 python-unittest2))
|
||||
|
||||
(define-public python-pafy
|
||||
(package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue