gnu: python-colorspacious: Run tests.

* gnu/packages/python.scm (python-colorspacious,
python2-colorspacious)[native-inputs]: Add python-nose.
[arguments]: Add custom 'check phase which runs nosetests.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
Thomas Danckaert 2017-03-06 15:33:34 +01:00 committed by Marius Bakke
parent 46d6219d41
commit ba062b3ec4
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 0 deletions

View File

@ -3837,6 +3837,14 @@ To address this and enable easy cycling over arbitrary @code{kwargs}, the
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
`(("python-numpy" ,python-numpy))) `(("python-numpy" ,python-numpy)))
(native-inputs
`(("python-nose" ,python-nose)))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(zero? (system* "nosetests" "--all-modules" "-v" "colorspacious")))))))
(home-page "https://github.com/njsmith/colorspacious") (home-page "https://github.com/njsmith/colorspacious")
(synopsis "Python library for colorspace conversions") (synopsis "Python library for colorspace conversions")
(description "@code{colorspacious} is a Python library that lets you (description "@code{colorspacious} is a Python library that lets you