From 6613661c6df478d207bfc1ce0f4785ddc25239fe Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 10 Jan 2022 22:55:54 +0100 Subject: [PATCH] gnu: python-cmd2: Update to 2.3.3. * gnu/packages/python-xyz.scm (python-cmd2): Update to 2.3.3. [arguments]: Override check phase. [native-inputs]: Remove PYTHON-CODECOV, PYTHON-COVERAGE, PYTHON-DOC8, PYTHON-FLAKE8, PYTHON-SPHINX, PYTHON-SPHINX-AUTOBUILD, PYTHON-SPHINX-RTD-THEME, PYTHON-TOX, PYTHON-TWINE, and WHICH. --- gnu/packages/python-xyz.scm | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5bcc96c088..e2f8c94ee7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26,7 +26,7 @@ ;;; Copyright © 2016, 2017 Nikita ;;; Copyright © 2016 Dylan Jeffers ;;; Copyright © 2016 David Craven -;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke +;;; Copyright © 2016-2022 Marius Bakke ;;; Copyright © 2016, 2017, 2021 Stefan Reichör ;;; Copyright © 2016, 2017, 2019 Alex Vong ;;; Copyright © 2016, 2017, 2018, 2021 Arun Isaac @@ -25561,34 +25561,35 @@ (define-public python-voluptuous (define-public python-cmd2 (package (name "python-cmd2") - (version "1.0.2") + (version "2.3.3") (source (origin (method url-fetch) (uri (pypi-uri "cmd2" version)) (sha256 (base32 - "1f18plbc9yyvhn0js3d2bii9yld8zfl775gxsaw9jza5pmlg9ss2")))) + "0h1naik558qh48gx2iyy0a0khvw5fz0in69y84mbrhsm9nq7w3bm")))) (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "pytest" "-vv" "-k" + ;; These tests fail because no EDITOR is in PATH. + "not test_find_editor_not_specified \ +and not test_transcript") + (format #t "test suite not run~%"))))))) (propagated-inputs (list python-attrs python-colorama python-pyperclip python-wcwidth)) (native-inputs - (list python-codecov - python-coverage - python-doc8 - python-flake8 - python-invoke + (list python-invoke python-mock python-pytest python-pytest-cov python-pytest-mock - python-setuptools-scm - python-sphinx - python-sphinx-autobuild - python-sphinx-rtd-theme - python-tox - python-twine - which)) + python-setuptools-scm)) (home-page "https://github.com/python-cmd2/cmd2") (synopsis "Tool for building interactive command line applications") (description