mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: python-testresources: Update to 2.0.1.
* gnu/packages/check.scm (python-testresources-bootstrap, python2-testresources-bootstrap): New public variables. (python-testresources): Adjust accordingly. [propagated-inputs]: Add PYTHON-PBR. [native-inputs]: Add PYTHON-FIXTURES and PYTHON-TESTTOOLS. * gnu/packages/python.scm (python-pbr)[native-inputs]: Replace PYTHON-TESTRESOURCES with PYTHON-TESTRESOURCES-BOOTSTRAP.
This commit is contained in:
parent
151f32a74b
commit
bc69104a44
2 changed files with 34 additions and 15 deletions
|
@ -908,28 +908,47 @@ (define-public python-testscenarios
|
||||||
(define-public python2-testscenarios
|
(define-public python2-testscenarios
|
||||||
(package-with-python2 python-testscenarios))
|
(package-with-python2 python-testscenarios))
|
||||||
|
|
||||||
(define-public python-testresources
|
;; Testresources requires python-pbr at runtime, but pbr needs it for its
|
||||||
|
;; own tests. Hence this bootstrap variant.
|
||||||
|
(define-public python-testresources-bootstrap
|
||||||
(package
|
(package
|
||||||
(name "python-testresources")
|
(name "python-testresources-bootstrap")
|
||||||
(version "0.2.7")
|
(version "2.0.1")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method url-fetch)
|
||||||
(method url-fetch)
|
(uri (pypi-uri "testresources" version))
|
||||||
(uri (string-append
|
(sha256
|
||||||
"https://pypi.python.org/packages/source/t/testresources/testresources-"
|
(base32
|
||||||
version ".tar.gz"))
|
"05s4dsli9g17m1r3b1gvwicbbgq011hnpb2b9qnj27ja2n11k7gf"))))
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
|
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
|
(arguments '(#:tests? #f))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-pbr" ,python-pbr-minimal)))
|
||||||
(home-page "https://launchpad.net/testresources")
|
(home-page "https://launchpad.net/testresources")
|
||||||
(synopsis
|
(synopsis
|
||||||
"Pyunit extension for managing test resources")
|
"Pyunit extension for managing test resources")
|
||||||
(description
|
(description
|
||||||
"Testresources is an extension to Python's unittest to allow declarative
|
"This package is only here for bootstrapping purposes. Use the regular
|
||||||
use of resources by test cases.")
|
testresources package instead.")
|
||||||
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
||||||
|
|
||||||
|
(define-public python2-testresources-bootstrap
|
||||||
|
(package-with-python2 python-testresources-bootstrap))
|
||||||
|
|
||||||
|
(define-public python-testresources
|
||||||
|
(package
|
||||||
|
(inherit python-testresources-bootstrap)
|
||||||
|
(name "python-testresources")
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-pbr" ,python-pbr)))
|
||||||
|
(arguments '())
|
||||||
|
(native-inputs
|
||||||
|
`(("python-fixtures" ,python-fixtures)
|
||||||
|
("python-testtols" ,python-testtools)))
|
||||||
|
(description
|
||||||
|
"Testresources is an extension to Python's unittest to allow declarative
|
||||||
|
use of resources by test cases.")))
|
||||||
|
|
||||||
(define-public python2-testresources
|
(define-public python2-testresources
|
||||||
(package-with-python2 python-testresources))
|
(package-with-python2 python-testresources))
|
||||||
|
|
||||||
|
|
|
@ -1695,7 +1695,7 @@ (define-public python-pbr
|
||||||
("python-six" ,python-six)
|
("python-six" ,python-six)
|
||||||
("python-sphinx" ,python-sphinx)
|
("python-sphinx" ,python-sphinx)
|
||||||
("python-testrepository" ,python-testrepository-bootstrap)
|
("python-testrepository" ,python-testrepository-bootstrap)
|
||||||
("python-testresources" ,python-testresources)
|
("python-testresources" ,python-testresources-bootstrap)
|
||||||
("python-testscenarios" ,python-testscenarios)
|
("python-testscenarios" ,python-testscenarios)
|
||||||
("python-testtools" ,python-testtools)
|
("python-testtools" ,python-testtools)
|
||||||
("python-virtualenv" ,python-virtualenv)))
|
("python-virtualenv" ,python-virtualenv)))
|
||||||
|
|
Loading…
Reference in a new issue