GNU bug report logs -
#76571
[PATCH python-team 00/15] Some fixes
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Tue, 25 Feb 2025 22:52:01 UTC
Severity: normal
Tags: patch
Done: Ricardo Wurmus <rekado <at> elephly.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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.
---
gnu/packages/check.scm | 31 -------------------------------
gnu/packages/python-xyz.scm | 12 +++++++++++-
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 5e3ad744cc..eb1923e8ad 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3496,37 +3496,6 @@ (define-public python-behave-web-api
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 271e52df34..0aa5b23278 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26659,10 +26659,20 @@ (define-public python-sure
(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 0030e152b4..fdb7753ba6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7159,6 +7159,12 @@ (define-public python-httpretty
(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?
@@ -7172,7 +7178,6 @@ (define-public python-httpretty
python-httplib2
python-nose
python-pyparsing
- python-rednose
python-requests
python-sure
python-tornado))
--
2.48.1
--
Best regards,
Nicolas Graves
This bug report was last modified 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.