diff options
Diffstat (limited to 'gn/packages/check.scm')
-rw-r--r-- | gn/packages/check.scm | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/gn/packages/check.scm b/gn/packages/check.scm index 69c9f1f..960e78e 100644 --- a/gn/packages/check.scm +++ b/gn/packages/check.scm @@ -3,7 +3,9 @@ #:use-module (guix download) #:use-module (guix build-system python) #:use-module ((guix licenses) #:prefix license:) - #:use-module (gnu packages check)) + #:use-module (gnu packages check) + #:use-module (gnu packages python-xyz) + #:use-module (past packages python27)) (define-public python-nosexcover (package @@ -27,3 +29,33 @@ to a file named coverage.xml. It will honor all the options you pass to the Nose coverage plugin, especially -cover-package.") (license license:expat))) + +(define-public python-unittest2 + (package + (name "python-unittest2") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "unittest2" version)) + (patches + (search-patches "python-unittest2-python3-compat.patch" + "python-unittest2-remove-argparse.patch")) + (sha256 + (base32 + "0y855kmx7a8rnf81d3lh5lyxai1908xjp0laf4glwa4c8472m212")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "python" "-m" "unittest2" "discover" "--verbose"))))))) + (propagated-inputs + (list python-six python-traceback2)) + (home-page "https://pypi.org/project/unittest2/") + (synopsis "Python unit testing library") + (description + "Unittest2 is a replacement for the unittest module in the Python +standard library.") + (license license:psfl))) |