diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-02-25 08:13:28 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:14 +0200 |
commit | 0165b28b86c16cec3bc9d2c55ec0b225faec668d (patch) | |
tree | 90c5f9961b60bf4f4a17939c1b727803ca09f083 | |
parent | 31eb603647c48128570442cb9a2e42eb468a0123 (diff) |
gnu: Remove python-rednose.
This package is broken with the latest python version, and is easy to
remove.
* gnu/packages/check.scm (python-rednose): Delete variable.
* gnu/packages/python-xyz.scm (python-sure) and
* gnu/packages/web.scm (python-httpretty):
[arguments]: Add 'remove-rednose-dependency in {phases}.
[native-inputs]: Remove python-rednose.
-rw-r--r-- | gnu/packages/check.scm | 31 | ||||
-rw-r--r-- | gnu/packages/python-xyz.scm | 12 | ||||
-rw-r--r-- | gnu/packages/web.scm | 7 |
3 files changed, 17 insertions, 33 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 452a045425..72fa088ac4 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -3512,37 +3512,6 @@ tests written in a natural language style, backed up by Python code.") JSON APIs with Behave.") (license license:expat))) -(define-public python-rednose - (package - (name "python-rednose") - (version "1.2.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "rednose" version)) - (sha256 - (base32 - "11x5nx5b4wdq04s7vj1gcdl07jvvkfb37p0r5lg773gr5rr8mj6h")))) - (build-system python-build-system) - (arguments - `(#:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-setup.py - (lambda _ - ;; Six is only required for tests and later versions - ;; work fine. - (substitute* "setup.py" - (("six==1.10.0") "six")) - #t))))) - (propagated-inputs - (list python-colorama python-termstyle)) - (native-inputs - (list python-six python-nose)) - (home-page "https://github.com/JBKahn/rednose") - (synopsis "Colored output for Python nosetests") - (description "This package provides colored output for the -@command{nosetests} command of the Python Nose unit test framework.") - (license license:bsd-3))) - (define-public python-nose-exclude (package (name "python-nose-exclude") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9f4c9a3cd1..bb53d509fe 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27055,10 +27055,20 @@ conversion: Gamut A, B, and C.") (base32 "1jmrskj399idw1czx6dvy2zfaijnwi02b55vx979ixp7q2mnzz68")))) (build-system python-build-system) + (arguments + (list + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'remove-rednose-dependency + (lambda _ + (substitute* "setup.py" + (("'rednose'") "")) + (substitute* '("requirements.txt" "setup.cfg") + (("rednose.*") ""))))))) (propagated-inputs (list python-mock python-six)) (native-inputs - (list python-nose python-rednose)) + (list python-nose)) (home-page "https://github.com/gabrielfalcao/sure") (synopsis "Automated testing library in python for python") (description diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 74203262ef..25792aae0f 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -7217,6 +7217,12 @@ efficient where possible.") (list #:phases '(modify-phases %standard-phases + (add-after 'unpack 'remove-rednose-dependency + (lambda _ + (substitute* "setup.py" + (("'rednose'") "")) + (substitute* '("requirements.txt" "setup.cfg") + (("rednose.*") "")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? @@ -7230,7 +7236,6 @@ efficient where possible.") python-httplib2 python-nose python-pyparsing - python-rednose python-requests python-sure python-tornado)) |