gnu: python-pytest-console-scripts: Update to 1.4.1.

* gnu/packages/python-check.scm (python-pytest-console-scripts): Update to 1.4.1.
  [build-system]: Use pyproject.
  [arguments] <tests-flags>: Skip 3 tests.
  <phases>: Use default 'check.
  [propagated-inputs]: Remove python-mock and python-pytest.
  [native-inputs]: Remove python-setuptools-scm; add
  python-pytest-bootstrap and python-setuptools.

Change-Id: I57a714afa0584ece0157236eb22f74a75f90cd17
This commit is contained in:
Sharlatan Hellseher 2025-08-09 17:12:40 +01:00
parent 1bf0bdf294
commit fae486d909
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1987,29 +1987,27 @@ pytest.")
(define-public python-pytest-console-scripts (define-public python-pytest-console-scripts
(package (package
(name "python-pytest-console-scripts") (name "python-pytest-console-scripts")
(version "1.2.1") (version "1.4.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pytest-console-scripts" version)) (uri (pypi-uri "pytest-console-scripts" version))
(sha256 (sha256
(base32 (base32 "15d8yi6g9wd7g6gkzhp0m3fpnbvnglfkhi4yxc1a5by09kc6x0js"))))
"1qsw3i2h3psyi5avwf14panx8wxqfik2z7294dy37w8ha415iwn7")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check #~(list "-k" (string-join
(lambda* (#:key inputs outputs tests? #:allow-other-keys) ;; FileNotFoundError: [Errno 2] No such file or directory:
(when tests? ;; 'script.py'
(add-installed-pythonpath inputs outputs) (list "not test_elsewhere_in_the_path"
(invoke "pytest" "--verbose" "test_shell"
;; This one test fails because of PATH assumptions "test_run_path")
"-k" "not test_elsewhere_in_the_path"))))))) " and not "))))
(propagated-inputs
(list python-mock python-pytest))
(native-inputs (native-inputs
(list python-setuptools-scm)) (list python-pytest-bootstrap
python-setuptools))
(home-page "https://github.com/kvas-it/pytest-console-scripts") (home-page "https://github.com/kvas-it/pytest-console-scripts")
(synopsis "Pytest plugin for testing console scripts") (synopsis "Pytest plugin for testing console scripts")
(description (description