[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/145: gnu: python-nose: Fix build.
From: |
guix-commits |
Subject: |
27/145: gnu: python-nose: Fix build. |
Date: |
Mon, 10 Jan 2022 11:44:04 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit ad860e34c26e7d1b4382533e574a9c4ad6eec34b
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Dec 17 22:04:00 2021 -0500
gnu: python-nose: Fix build.
This unmaintained package doesn't build anymore on Python 3.9.9.
* gnu/packages/check.scm (python-nose)[phases]{invoke-2to3}: New phase.
[properties]: New field.
(python2-nose): Strip python2 property.
[phases]{invoke-2to3}: Delete phase.
---
gnu/packages/check.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 0a90a3b167..194bdf20ad 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -845,6 +845,7 @@ available via the @code{unittest.mock} module.")
("python2-funcsigs" ,python2-funcsigs)
,@(package-propagated-inputs base))))))
+;;; This package is unmaintained (see the note at the top of doc/index.rst).
(define-public python-nose
(package
(name "python-nose")
@@ -858,15 +859,26 @@ available via the @code{unittest.mock} module.")
"164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f)) ; FIXME: test suite fails
+ '(#:tests? #f
+ #:phases (modify-phases %standard-phases
+ (add-after 'unpack 'invoke-2to3
+ (lambda _
+ (invoke "2to3" "-w" "."))))))
(home-page "http://readthedocs.org/docs/nose/")
(synopsis "Python testing library")
(description
"Nose extends the unittest library to make testing easier.")
- (license license:lgpl2.0+)))
+ (license license:lgpl2.0+)
+ (properties `((python2-variant . ,(delay python2-nose))))))
(define-public python2-nose
- (package-with-python2 python-nose))
+ (let ((base (package-with-python2
+ (strip-python2-variant python-nose))))
+ (package/inherit base
+ (arguments (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'invoke-2to3))))))))
(define-public python-nose2
(package
- 96/145: gnu: emacs: Remove obsolete phase., (continued)
- 96/145: gnu: emacs: Remove obsolete phase., guix-commits, 2022/01/10
- 99/145: gnu: go-github-com-docker-distribution: Remove obsolete phase., guix-commits, 2022/01/10
- 50/145: gnu: gusb: Add python to native inputs., guix-commits, 2022/01/10
- 53/145: gnu: dconf: Add python to native inputs., guix-commits, 2022/01/10
- 46/145: gnu: libxkbcommon: Add python to native inputs., guix-commits, 2022/01/10
- 127/145: gnu: simple-scan: Add python to native inputs., guix-commits, 2022/01/10
- 122/145: gnu: python-xlwt: Add comment about maintainership of the package., guix-commits, 2022/01/10
- 140/145: gnu: rav1e: Update to 0.5.1; also update rust-aom-sys to 0.3.0., guix-commits, 2022/01/10
- 67/145: gnu: python-platformdirs: Update to 2.4.0, run tests and fix metadata., guix-commits, 2022/01/10
- 83/145: gnu: python-beautifulsoup4: Update to 4.10.0., guix-commits, 2022/01/10
- 27/145: gnu: python-nose: Fix build.,
guix-commits <=
- 21/145: gnu: llvm-12: Use quasiquote, addressing TODO., guix-commits, 2022/01/10
- 37/145: gnu: shadow: Update to 4.9., guix-commits, 2022/01/10
- 51/145: gnu: gtk: Update to 4.4.1., guix-commits, 2022/01/10
- 72/145: gnu: Add zopfli., guix-commits, 2022/01/10
- 70/145: gnu: Add python-pyftpdlib., guix-commits, 2022/01/10
- 48/145: gnu: atkmm-2.28: Do not propagate two variants of glibmm., guix-commits, 2022/01/10
- 71/145: gnu: Add python-fs., guix-commits, 2022/01/10
- 57/145: gnu: python-typed-ast: Update to 1.5.1., guix-commits, 2022/01/10
- 135/145: gnu: Add rust-assert-cmd-2., guix-commits, 2022/01/10
- 62/145: gnu: python-typing-extensions: Update to 4.0.1., guix-commits, 2022/01/10