gnu: python-pytest: Update to 3.5.0.

* gnu/packages/python.scm (python-six): Replace system* with invoke.
(python-six-bootstrap, python2-six-bootstrap, python2-funcsigs-bootstrap): New
variables.
(python-more-itertools)[propagated-inputs]: Replace python-six with
python-six-bootstrap.
* gnu/packages/check.scm (python-pytest): Update to 3.5.0.
[propagated-inputs]: Add python-attrs-bootstrap,
python-more-itertools-bootstrap, python-pluggy and python-six-bootstrap.
[properties]: Add python2-variant.
(python2-pytest)[propagated-inputs]: Add python2-funcsigs.
(python-pytest-bootstrap)[properties]: Add python2-variant.
(python2-pytest-bootstrap)[propagated-inputs]: Add python2-funcsigs-bootstrap.
This commit is contained in:
Arun Isaac 2018-03-28 21:46:23 +05:30
parent 32b92480b3
commit 7ad5c6dd78
No known key found for this signature in database
GPG Key ID: 2E25EE8B61802BB3
2 changed files with 45 additions and 9 deletions

View File

@ -597,14 +597,14 @@ standard library.")
(define-public python-pytest (define-public python-pytest
(package (package
(name "python-pytest") (name "python-pytest")
(version "3.2.3") (version "3.5.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pytest" version)) (uri (pypi-uri "pytest" version))
(sha256 (sha256
(base32 (base32
"0g6w86ks73fnrnsyib9ii2rbyx830vn7aglsjqz9v1n2xwbndyi7")))) "1q832zd07zak2lyxbycxjydh0jp7y3hvawjqzlvra6aghz8r3r7s"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -622,7 +622,11 @@ standard library.")
line))) line)))
#t))))) #t)))))
(propagated-inputs (propagated-inputs
`(("python-py" ,python-py))) `(("python-attrs" ,python-attrs-bootstrap)
("python-more-itertools" ,python-more-itertools)
("python-pluggy" ,python-pluggy)
("python-py" ,python-py)
("python-six" ,python-six-bootstrap)))
(native-inputs (native-inputs
`(;; Tests need the "regular" bash since 'bash-final' lacks `compgen`. `(;; Tests need the "regular" bash since 'bash-final' lacks `compgen`.
("bash" ,bash) ("bash" ,bash)
@ -636,20 +640,33 @@ standard library.")
"Pytest is a testing tool that provides auto-discovery of test modules "Pytest is a testing tool that provides auto-discovery of test modules
and functions, detailed info on failing assert statements, modular fixtures, and functions, detailed info on failing assert statements, modular fixtures,
and many external plugins.") and many external plugins.")
(license license:expat))) (license license:expat)
(properties `((python2-variant . ,(delay python2-pytest))))))
(define-public python2-pytest (define-public python2-pytest
(package-with-python2 python-pytest)) (let ((pytest (package-with-python2
(strip-python2-variant python-pytest))))
(package
(inherit pytest)
(propagated-inputs
`(("python2-funcsigs" ,python2-funcsigs)
,@(package-propagated-inputs pytest))))))
(define-public python-pytest-bootstrap (define-public python-pytest-bootstrap
(package (package
(inherit python-pytest) (inherit (strip-python2-variant python-pytest))
(name "python-pytest-bootstrap") (name "python-pytest-bootstrap")
(native-inputs `(("python-setuptools-scm" ,python-setuptools-scm))) (native-inputs `(("python-setuptools-scm" ,python-setuptools-scm)))
(arguments `(#:tests? #f)))) (arguments `(#:tests? #f))
(properties `((python2-variant . ,(delay python2-pytest-bootstrap))))))
(define-public python2-pytest-bootstrap (define-public python2-pytest-bootstrap
(package-with-python2 python-pytest-bootstrap)) (let ((pytest (package-with-python2
(strip-python2-variant python-pytest-bootstrap))))
(package (inherit pytest)
(propagated-inputs
`(("python2-funcsigs" ,python2-funcsigs-bootstrap)
,@(package-propagated-inputs pytest))))))
(define-public python-pytest-cov (define-public python-pytest-cov
(package (package

View File

@ -1157,6 +1157,16 @@ Python file, so it can be easily copied into your project.")
(define-public python2-six (define-public python2-six
(package-with-python2 python-six)) (package-with-python2 python-six))
(define-public python-six-bootstrap
(package
(inherit python-six)
(name "python-six-bootstrap")
(native-inputs `())
(arguments `(#:tests? #f))))
(define-public python2-six-bootstrap
(package-with-python2 python-six-bootstrap))
(define-public python-schedule (define-public python-schedule
(package (package
(name "python-schedule") (name "python-schedule")
@ -1713,6 +1723,15 @@ matching them against a list of media-ranges.")
"Backport of @code{funcsigs} which was introduced in Python 3.3.") "Backport of @code{funcsigs} which was introduced in Python 3.3.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public python2-funcsigs-bootstrap
(package
(inherit python2-funcsigs)
(name "python2-funcsigs-bootstrap")
(native-inputs `())
(arguments
`(#:tests? #f
,@(package-arguments python2-funcsigs)))))
(define-public python-pafy (define-public python-pafy
(package (package
(name "python-pafy") (name "python-pafy")
@ -13175,7 +13194,7 @@ file system events on Linux.")
"0i3ch700g5fyjp692gprlnzbysl8w0sa2vijbp3s40drvk67xkn9")))) "0i3ch700g5fyjp692gprlnzbysl8w0sa2vijbp3s40drvk67xkn9"))))
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
`(("python-six" ,python-six))) `(("python-six" ,python-six-bootstrap)))
(home-page "https://github.com/erikrose/more-itertools") (home-page "https://github.com/erikrose/more-itertools")
(synopsis "More routines for operating on iterables, beyond itertools") (synopsis "More routines for operating on iterables, beyond itertools")
(description "Python's built-in @code{itertools} module implements a (description "Python's built-in @code{itertools} module implements a