gnu: python-pytest-isort: Update to 3.1.0.

Resolves test failures.

* gnu/packages/python-check.scm (python-pytest-isort)[arguments]: Remove #:phases,
disable tests.
[native-inputs]: Remove python-mock.
This commit is contained in:
Lars-Dominik Braun 2023-03-31 13:22:49 +02:00
parent 651505807e
commit 3b57a9cac8
No known key found for this signature in database
GPG key ID: F663943E08D8092A

View file

@ -1152,25 +1152,18 @@ (define-public python-pytest-flake8
(define-public python-pytest-isort (define-public python-pytest-isort
(package (package
(name "python-pytest-isort") (name "python-pytest-isort")
(version "2.0.0") (version "3.1.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pytest-isort" version)) (uri (pypi-uri "pytest_isort" version))
(sha256 (sha256
(base32 "05wi28zlqk3jafpjal8j523y5jcsx3xl3id9rx93qfjgkif8q6l2")))) (base32 "0v0qa5l22y3v0nfkpvghbinzyj2rh4f54k871lrp992lbvf02y06"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:tests? #f)) ; No tests in PyPi tarball.
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(propagated-inputs (propagated-inputs
(list python-isort python-pytest)) (list python-isort python-pytest))
(native-inputs
(list python-mock))
(home-page "https://github.com/moccu/pytest-isort/") (home-page "https://github.com/moccu/pytest-isort/")
(synopsis "Pytest plugin to check import ordering using isort") (synopsis "Pytest plugin to check import ordering using isort")
(description (description