[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/131: gnu: python-pytest-pep8: Fix package.
From: |
guix-commits |
Subject: |
09/131: gnu: python-pytest-pep8: Fix package. |
Date: |
Mon, 1 Feb 2021 11:56:32 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 355d87a0a562bb84b416163d4804919c497732b5
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Jan 7 13:35:11 2021 +0100
gnu: python-pytest-pep8: Fix package.
* gnu/packages/check.scm (python-pytest-pep8)[arguments]: Remove
dependency on pytest-cache and add proper 'check phase.
---
gnu/packages/check.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index defa594..ce00927 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1985,7 +1985,18 @@ failures.")
"06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f)) ; Fails with recent pytest and pep8. See upstream issues
#8 and #12.
+ `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8
and #12.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-dependencies
+ (lambda _
+ (substitute* "setup.py"
+ (("'pytest-cache', ") "")))) ; Included in recent pytest
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-v")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
- branch core-updates updated (6a4b336 -> 1b91868), guix-commits, 2021/02/01
- 01/131: gnu: python: Replace PYTHONPATH by GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 05/131: build/python: Adjust wrap phase to use the new GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 09/131: gnu: python-pytest-pep8: Fix package.,
guix-commits <=
- 16/131: gnu: python-twisted: Remove broken console scripts., guix-commits, 2021/02/01
- 04/131: build/python: Add the installation bin directory to PATH., guix-commits, 2021/02/01
- 11/131: gnu: python-slugify: Add missing input., guix-commits, 2021/02/01
- 12/131: gnu: python-websockets: Fix Python package name., guix-commits, 2021/02/01
- 07/131: gnu: python-pytest-xdist: Add missing input, relax pytest requirement., guix-commits, 2021/02/01
- 06/131: build/python: Add a sanity check phase., guix-commits, 2021/02/01
- 19/131: gnu: python-traceback2: Add missing dependency., guix-commits, 2021/02/01
- 23/131: gnu: intel-xed: Adjust build phase., guix-commits, 2021/02/01
- 26/131: gnu: bamm: Update following changes to the Python build system., guix-commits, 2021/02/01
- 25/131: gnu: python-pysam: Adjust following Python build system changes., guix-commits, 2021/02/01