From 9e22ab252f7c106f0aadcb697d22fa08eaf476e3 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 6 May 2021 15:50:16 +0200 Subject: [PATCH] gnu: python-flake8: Do not delete and recreate check phase. * gnu/packages/python-xyz.scm (python-flake8)[arguments]: Replace check phase instead of deleting. Remove trailing #t. --- gnu/packages/python-xyz.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fbaec6ee92..75a0cc8db3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9009,12 +9009,10 @@ complexity of Python source code.") (arguments `(#:phases (modify-phases %standard-phases - (delete 'check) - (add-after 'install 'check + (replace 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-v") - #t))))) + (invoke "pytest" "-v")))))) (propagated-inputs `(("python-pycodestyle" ,python-pycodestyle) ("python-entrypoints" ,python-entrypoints)