[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25834: [PATCH] Update scipy stack.
From: |
Thomas Danckaert |
Subject: |
bug#25834: [PATCH] Update scipy stack. |
Date: |
Mon, 06 Mar 2017 15:39:39 +0100 (CET) |
From: Marius Bakke <address@hidden>
Subject: Re: bug#25834: [PATCH] Update scipy stack.
Date: Mon, 06 Mar 2017 14:25:26 +0100
Please pay attention during the 'check' phase of Python packages --
both
colorspacious and the shutils backport prints 'Ran 0 tests in...'.
Usually this is a sign that they require some other command than
'python
setup.py test', which is the default of python-build-system.
I pushed a fix for python2-backports-shutil-get-terminal-size that
I had
in my queue, but it would be nice to enable tests on colorspacious
as
well. Any takers? :)
I've attached an attempt (now runs 34 tests). Am I right that
running “nosetests colorspacious/*.py” is the only way to make it run
the tests in this case?
cheers,
Thomas
>From 6714863034f9522512cdf2d45fef402eda00df7c Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <address@hidden>
Date: Mon, 6 Mar 2017 15:33:34 +0100
Subject: [PATCH] gnu: python-colorspacious: Run tests.
* gnu/packages/python.scm (python-colorspacious) [native-inputs]: Add
python-nose. [arguments]: Add custom 'check phase which runs nosetests.
---
gnu/packages/python.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e94aa812b..fa74d1c6f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3841,6 +3841,16 @@ To address this and enable easy cycling over arbitrary
@code{kwargs}, the
(build-system python-build-system)
(propagated-inputs
`(("python-numpy" ,python-numpy)))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _ (zero?
+ (apply system*
+ `("nosetests"
+ ,@(find-files "colorspacious" ".*\\.py")))))))))
(home-page "https://github.com/njsmith/colorspacious")
(synopsis "Python library for colorspace conversions")
(description "@code{colorspacious} is a Python library that lets you
--
2.11.1