[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/142: gnu: python-nose: Fix build.
From: |
guix-commits |
Subject: |
27/142: gnu: python-nose: Fix build. |
Date: |
Mon, 10 Jan 2022 13:07:15 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 8b7a304e99ed9b486fd18c50a325d8066838835b
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
- 35/142: gnu: cmake-bootstrap: Update to 3.21.4., (continued)
- 35/142: gnu: cmake-bootstrap: Update to 3.21.4., guix-commits, 2022/01/10
- 62/142: gnu: python-typing-extensions: Update to 4.0.1., guix-commits, 2022/01/10
- 68/142: gnu: python-pylint: Update to 2.12.2., guix-commits, 2022/01/10
- 83/142: gnu: python-beautifulsoup4: Update to 4.10.0., guix-commits, 2022/01/10
- 89/142: gnu: igraph: Update to 0.9.5., guix-commits, 2022/01/10
- 92/142: build-system/gnu: Make gzip files writable before resetting timestamps., guix-commits, 2022/01/10
- 93/142: gnu: python-biom-format: Remove obsolete phase., guix-commits, 2022/01/10
- 17/142: guix: lint: Fix comment per TODO., guix-commits, 2022/01/10
- 24/142: gnu: libcap: Use #$output unconditionally., guix-commits, 2022/01/10
- 25/142: gnu: libproxy: Remove target condition from check phase., guix-commits, 2022/01/10
- 27/142: gnu: python-nose: Fix build.,
guix-commits <=
- 30/142: gnu: glibmm: Remove trailing #t., guix-commits, 2022/01/10
- 26/142: gnu: glib: Fix cross-compilation., guix-commits, 2022/01/10
- 34/142: gnu: eudev: Update to 3.2.11., guix-commits, 2022/01/10
- 41/142: gnu: gsettings-desktop-schemas: Add python to native inputs., guix-commits, 2022/01/10
- 46/142: gnu: libxkbcommon: Add python to native inputs., guix-commits, 2022/01/10
- 49/142: gnu: pangomm: Add python to native inputs., guix-commits, 2022/01/10
- 58/142: gnu: glade3: Add python to native inputs., guix-commits, 2022/01/10
- 55/142: gnu: python-msgpack: Update to 1.0.3., guix-commits, 2022/01/10
- 59/142: gnu: python-curio: Disable newly failing 'test_timeout' test., guix-commits, 2022/01/10
- 07/142: gnu: python-tomli: Update to 2.0.0., guix-commits, 2022/01/10