aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-11-23 00:22:52 +0100
committerRicardo Wurmus <rekado@elephly.net>2022-11-23 13:57:47 +0100
commit3ab9adba57c529f524e63ffbc663f5ddf8770752 (patch)
treedacbcbe33da076763c5f0577eda379913f30e19e /gnu/packages/python-xyz.scm
parent093bf20cdc54add190b1184f548cb5d3a97c6ad1 (diff)
downloadguix-3ab9adba57c529f524e63ffbc663f5ddf8770752.tar.gz
guix-3ab9adba57c529f524e63ffbc663f5ddf8770752.zip
gnu: python-munkres: Conditionally disable failing test.
* gnu/packages/python-xyz.scm (python-munkres)[arguments]: Add phase "disable-test" to patch test suite.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a88075cefa..7fefbc5bff 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16045,6 +16045,20 @@ way.")
(sha256
(base32
"00yvj8bxmhhhhd74v7j0x673is7vizmxwgb3dd5xmnkr74ybyi7w"))))
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'disable-test
+ (lambda _
+ ;; See https://github.com/bmc/munkres/issues/40
+ (substitute* "test/test_munkres.py"
+ (("^def test_profit_float" m)
+ (string-append "\
+import platform
+@pytest.mark.skipif(platform.architecture()[0] == \"32bit\",
+ reason=\"Fails on 32 bit architectures\")
+" m))))))))
(build-system python-build-system)
(native-inputs (list python-pytest-6))
(home-page "https://software.clapper.org/munkres/")