[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/103: gnu: python-pylama: Fix tests.
From: |
guix-commits |
Subject: |
30/103: gnu: python-pylama: Fix tests. |
Date: |
Wed, 5 Jan 2022 09:44:31 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 92bacf9d921ea66ae0e8b933fc0fe93b6003a09d
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Dec 8 14:20:17 2021 +0100
gnu: python-pylama: Fix tests.
Fetch source from git origin, which has tests and disable tests for removed
module.
* gnu/packages/python-check.scm (python-pylama)[source]: Change to
git-fetch.
[arguments]: Add #:test-flags.
[native-arguments]: Add git.
---
gnu/packages/python-check.scm | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index dd246c52ea..039afc0cad 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -38,6 +38,7 @@
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
+ #:use-module (gnu packages version-control)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
@@ -1545,15 +1546,19 @@ any Python VM with basically no runtime overhead.")
(name "python-pylama")
(version "7.7.1")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pylama" version))
+ (origin
+ ;; The PyPi tarball lacks dummy.py for tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/klen/pylama.git")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "13vx7daqz2918y9s8q3v2i3xaq3ah43a9p58srqi6hqskkpm7blv"))))
+ (base32 "1hza43s8b3znq2vcihyvsyw6j19lm42rjn87i056j8kgrmkfil8w"))))
(build-system python-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
+ `(#:test-flags '("tests" "-k" "not test_eradicate")
+ #:phases (modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda _
;; Fails with: "ImportError: cannot import name
@@ -1564,7 +1569,7 @@ any Python VM with basically no runtime overhead.")
;; https://github.com/PyCQA/astroid/issues/881).
(delete-file "pylama/lint/pylama_pylint.py"))))))
(native-inputs
- (list python-py python-pytest python-radon))
+ (list python-py python-pytest python-radon git))
(propagated-inputs
`(("python-mccabe" ,python-mccabe)
("python-mypy", python-mypy-minimal)
- 86/103: gnu: python-eliot: Remove redundant input., (continued)
- 86/103: gnu: python-eliot: Remove redundant input., guix-commits, 2022/01/05
- 88/103: gnu: python-libxml2: Fix build., guix-commits, 2022/01/05
- 83/103: gnu: python-yamllint: Remove redundant input., guix-commits, 2022/01/05
- 89/103: gnu: python-devtools: Disable tests., guix-commits, 2022/01/05
- 84/103: gnu: python-pybtex: Disable tests., guix-commits, 2022/01/05
- 85/103: gnu: python-gssapi: Disable tests., guix-commits, 2022/01/05
- 82/103: gnu: python-setuptools-scm-git-archive: Disable tests., guix-commits, 2022/01/05
- 97/103: gnu: python-dnaio: Disable tests., guix-commits, 2022/01/05
- 94/103: gnu: tuir: Disable failing tests., guix-commits, 2022/01/05
- 99/103: gnu: python-docker-pycreds: Disable tests., guix-commits, 2022/01/05
- 30/103: gnu: python-pylama: Fix tests.,
guix-commits <=
- 31/103: gnu: python-pycairo: Install headers and pkg-config files., guix-commits, 2022/01/05
- 35/103: gnu: pybind11: Add python-setuptools., guix-commits, 2022/01/05
- 100/103: gnu: python-webob: Disable tests., guix-commits, 2022/01/05