gnu: python-testtools: Update to 2.3.0.

* gnu/packages/check.scm (python-testtools-bootstrap,
python2-testtools-bootstrap): New public variables.
(python-testtools): Inherit.
[arguments]: Remove old.  Replace CHECK-PHASE with custom command.
[propagated-inputs]: Add PYTHON-FIXTURES, PYTHON-PBR, PYTHON-SIX,
PYTHON-TRACEBACK2 and PYTHON-UNITTEST2.
[native-inputs]: Add PYTHON-TESTSCENARIOS-BOOTSTRAP.
(python-testscenarios-bootstrap, python2-testscenarios-bootstrap): New public
variables.
(python-testscenarios): Adjust accordingly.
[propagated-inputs]: Replace PYTHON-TESTTOOLS with PYTHON-TESTTOOLS-BOOTSTRAP.
(python-subunit-bootstrap, python2-subunit-bootstrap): New public variables.
(python-subunit): Inherit.
(python-fixtures-bootstrap)[native-inputs]: Replace PYTHON-TESTTOOLS with
PYTHON-TESTTOOLS-BOOTSTRAP.
(python-testrepository-bootstrap)[native-inputs]: Replace PYTHON-SUBUNIT and
PYTHON-TESTTOOLS with PYTHON-SUBUNIT-BOOTSTRAP and PYTHON-TESTTOOLS-BOOTSTRAP.
* gnu/packages/python.scm (python-pbr)[native-inputs]: Replace
PYTHON-TESTSCENARIOS and PYTHON-TESTTOOLS with
PYTHON-TESTSCENARIOS-BOOTSTRAP and PYTHON-TESTTOOLS-BOOTSTRAP.
This commit is contained in:
Marius Bakke 2018-02-27 18:33:09 +01:00
parent 881ed3f868
commit 8b93f7e437
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
2 changed files with 87 additions and 46 deletions

View File

@ -834,57 +834,68 @@ subprocess and see the output as well as any file modifications.")
(define-public python2-scripttest (define-public python2-scripttest
(package-with-python2 python-scripttest)) (package-with-python2 python-scripttest))
(define-public python-testtools (define-public python-testtools-bootstrap
(package (package
(name "python-testtools") (name "python-testtools-bootstrap")
(version "1.4.0") (version "2.3.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "testtools" version)) (uri (pypi-uri "testtools" version))
(sha256 (sha256
(base32 (base32
"1vw8yljnd75d396hhw6s2hrf4cclzy845ifd5am0lxsl235z3i8c")))) "0n8519lk8aaa91vymz842831181wf7fss98hyllhygi3z1nfq9sq"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments '(#:tests? #f))
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-module-imports
(lambda _
(substitute* "setup.py"
(("'unittest2>=0.8.0',") ""))
(substitute* '("testtools/testcase.py"
"testtools/testsuite.py"
"testtools/run.py"
"testtools/tests/test_run.py"
"testtools/tests/test_testsuite.py"
"testtools/tests/test_deferredruntest.py")
;; unittest2 is a backport of Python2.7 features to Python 2.4.
(("import unittest2 as unittest") "import unittest")
(("import unittest2") "import unittest as unittest2")
(("from unittest2 import") "from unittest import"))
(substitute* "testtools/tests/test_testresult.py"
;; NUL in source code is not allowed (raises ValueError).
(("\\x00\\x04") "\\x04"))
#t)))))
(propagated-inputs (propagated-inputs
`(("python-mimeparse" ,python-mimeparse) `(("python-extras" ,python-extras)
("python-extras" ,python-extras))) ("python-fixtures" ,python-fixtures-bootstrap)
("python-mimeparse" ,python-mimeparse)
("python-pbr" ,python-pbr-minimal)
("python-six" ,python-six)
("python-traceback2" ,python-traceback2)
("python-unittest2" ,python-unittest2)))
(home-page "https://github.com/testing-cabal/testtools") (home-page "https://github.com/testing-cabal/testtools")
(synopsis (synopsis
"Extensions to the Python standard library unit testing framework") "Extensions to the Python standard library unit testing framework")
(description
"This package is only for bootstrapping. Do not use this.")
(license license:psfl)))
(define-public python2-testtools-bootstrap
(package-with-python2 python-testtools-bootstrap))
(define-public python-testtools
(package
(inherit python-testtools-bootstrap)
(name "python-testtools")
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-m" "testtools.run"
"testtools.tests.test_suite"))))))
(propagated-inputs
`(("python-extras" ,python-extras)
("python-fixtures" ,python-fixtures)
("python-mimeparse" ,python-mimeparse)
("python-pbr" ,python-pbr)
("python-six" ,python-six)
("python-traceback2" ,python-traceback2)
("python-unittest2" ,python-unittest2)))
(native-inputs
`(("python-testscenarios" ,python-testscenarios-bootstrap)))
(description (description
"Testtools extends the Python standard library unit testing framework to "Testtools extends the Python standard library unit testing framework to
provide matchers, more debugging information, and cross-Python provide matchers, more debugging information, and cross-Python
compatibility.") compatibility.")))
(license license:psfl)))
(define-public python2-testtools (define-public python2-testtools
(package-with-python2 python-testtools)) (package-with-python2 python-testtools))
(define-public python-testscenarios (define-public python-testscenarios-bootstrap
(package (package
(name "python-testscenarios") (name "python-testscenarios-bootstrap")
(version "0.4") (version "0.4")
(source (source
(origin (origin
@ -897,14 +908,26 @@ compatibility.")
"1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg")))) "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
`(("python-testtools" ,python-testtools))) `(("python-testtools" ,python-testtools-bootstrap)))
(home-page "https://launchpad.net/testscenarios") (home-page "https://launchpad.net/testscenarios")
(synopsis "Pyunit extension for dependency injection") (synopsis "Pyunit extension for dependency injection")
(description (description
"Testscenarios provides clean dependency injection for Python unittest "This package is only for bootstrapping. Don't use this.")
style tests.")
(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-testscenarios-bootstrap
(package-with-python2 python-testscenarios-bootstrap))
(define-public python-testscenarios
(package
(inherit python-testscenarios-bootstrap)
(name "python-testscenarios")
(propagated-inputs
`(("python-testtools" ,python-testtools)))
(description
"Testscenarios provides clean dependency injection for Python unittest
style tests.")))
(define-public python2-testscenarios (define-public python2-testscenarios
(package-with-python2 python-testscenarios)) (package-with-python2 python-testscenarios))
@ -952,32 +975,50 @@ use of resources by test cases.")))
(define-public python2-testresources (define-public python2-testresources
(package-with-python2 python-testresources)) (package-with-python2 python-testresources))
(define-public python-subunit (define-public python-subunit-bootstrap
(package (package
(name "python-subunit") (name "python-subunit-bootstrap")
(version "1.2.0") (version "1.2.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri name version)) (uri (pypi-uri "python-subunit" version))
(sha256 (sha256
(base32 (base32
"1yii2gx3z6323as3iraj1yphj76dy7i3h6kj63pnc5y0hwjs5sgx")))) "1yii2gx3z6323as3iraj1yphj76dy7i3h6kj63pnc5y0hwjs5sgx"))))
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
`(("python-extras" ,python-extras) `(("python-extras" ,python-extras)
("python-testtools" ,python-testtools))) ("python-testtools" ,python-testtools-bootstrap)))
(native-inputs (native-inputs
`(("python-fixtures" ,python-fixtures-bootstrap) `(("python-fixtures" ,python-fixtures-bootstrap)
("python-hypothesis" ,python-hypothesis) ("python-hypothesis" ,python-hypothesis)
("python-testscenarios" ,python-testscenarios))) ("python-testscenarios" ,python-testscenarios-bootstrap)))
(home-page "http://launchpad.net/subunit") (home-page "http://launchpad.net/subunit")
(synopsis "Python implementation of the subunit protocol") (synopsis "Python implementation of the subunit protocol")
(description (description
"Python-subunit is a Python implementation of the subunit test streaming "This package is here for bootstrapping purposes only. Use the regular
protocol.") python-subunit 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-subunit-bootstrap
(package-with-python2 python-subunit-bootstrap))
(define-public python-subunit
(package
(inherit python-subunit-bootstrap)
(name "python-subunit")
(propagated-inputs
`(("python-extras" ,python-extras)
("python-testtools" ,python-testtools)))
(native-inputs
`(("python-fixtures" ,python-fixtures)
("python-hypothesis" ,python-hypothesis)
("python-testscenarios" ,python-testscenarios)))
(description
"Python-subunit is a Python implementation of the subunit test streaming
protocol.")))
(define-public python2-subunit (define-public python2-subunit
(package-with-python2 python-subunit)) (package-with-python2 python-subunit))
@ -1025,7 +1066,7 @@ python-fixtures package instead.")
("python-six" ,python-six))) ("python-six" ,python-six)))
(native-inputs (native-inputs
`(("python-mock" ,python-mock) `(("python-mock" ,python-mock)
("python-testtools" ,python-testtools))) ("python-testtools" ,python-testtools-bootstrap)))
(description (description
"Fixtures provides a way to create reusable state, useful when writing "Fixtures provides a way to create reusable state, useful when writing
Python tests."))) Python tests.")))
@ -1050,8 +1091,8 @@ Python tests.")))
(arguments '(#:tests? #f)) (arguments '(#:tests? #f))
(propagated-inputs (propagated-inputs
`(("python-fixtures" ,python-fixtures-bootstrap) `(("python-fixtures" ,python-fixtures-bootstrap)
("python-subunit" ,python-subunit) ("python-subunit" ,python-subunit-bootstrap)
("python-testtools" ,python-testtools))) ("python-testtools" ,python-testtools-bootstrap)))
(native-inputs (native-inputs
`(("python-mimeparse" ,python-mimeparse))) `(("python-mimeparse" ,python-mimeparse)))
(home-page "https://launchpad.net/testrepository") (home-page "https://launchpad.net/testrepository")

View File

@ -1694,8 +1694,8 @@ code introspection, and logging.")
("python-sphinx" ,python-sphinx) ("python-sphinx" ,python-sphinx)
("python-testrepository" ,python-testrepository-bootstrap) ("python-testrepository" ,python-testrepository-bootstrap)
("python-testresources" ,python-testresources-bootstrap) ("python-testresources" ,python-testresources-bootstrap)
("python-testscenarios" ,python-testscenarios) ("python-testscenarios" ,python-testscenarios-bootstrap)
("python-testtools" ,python-testtools) ("python-testtools" ,python-testtools-bootstrap)
("python-virtualenv" ,python-virtualenv))) ("python-virtualenv" ,python-virtualenv)))
(synopsis "Enhance the default behavior of Pythons setuptools") (synopsis "Enhance the default behavior of Pythons setuptools")
(description (description