From 18a4d6df24b135d7bb448f799acc85d838c99bfd Mon Sep 17 00:00:00 2001 From: Fis Trivial Date: Sun, 31 Dec 2017 17:35:41 +0000 Subject: gnu: Add python-pyhamcrest. * gnu/packages/check.scm (python-pyhamcrest, python2-pyhamcrest): New variables. Signed-off-by: Kei Kebreau --- gnu/packages/check.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 05ed3eea32..40cce18f92 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1766,3 +1766,37 @@ (define-public python-flaky (define-public python2-flaky (package-with-python2 python-flaky)) + +(define-public python-pyhamcrest + (package + (name "python-pyhamcrest") + (version "1.9.0") + (source (origin + (method url-fetch) + (uri + (string-append + "https://github.com/hamcrest/PyHamcrest/archive/V" + version + ".tar.gz")) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1lqjajhwf7x7igvvnj5p1cm31y9njy07qby94w18kl6zwbdjqrwy")))) + (native-inputs ; All native inputs are for tests + `(("python-pytest-cov" ,python-pytest-cov) + ("python-mock" ,python-mock) + ("python-pytest" ,python-pytest-3.0) + ("python-hypothesis" ,python-hypothesis))) + (propagated-inputs + `(("python-six" ,python-six))) + (build-system python-build-system) + (home-page "http://hamcrest.org/") + (synopsis "Hamcrest matchers for Python") + (description + "PyHamcrest is a framework for writing matcher objects, + allowing you to declaratively define \"match\" rules.") + (license license:bsd-3))) + +(define-public python2-pyhamcrest + (package-with-python2 python-pyhamcrest)) -- cgit v1.2.3 From 9268a3c4dfb4efaa6c2d7c0d2b0267204ee5ed5b Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Sun, 7 Jan 2018 22:04:30 -0500 Subject: gnu: Add missing copyright line. * gnu/packages/check.scm: Add copyright line for 18a4d6d. --- gnu/packages/check.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 40cce18f92..76fb1dc3ff 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -27,6 +27,7 @@ ;;; Copyright © 2015, 2017 Ricardo Wurmus ;;; Copyright © 2016, 2017 Marius Bakke ;;; Copyright © 2017 Ludovic Courtès +;;; Copyright © 2018 Fis Trivial ;;; ;;; This file is part of GNU Guix. ;;; -- cgit v1.2.3 From 1e257d3da9a43a0b4ad09ddfb32562a08122e7c0 Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Mon, 8 Jan 2018 11:08:06 -0500 Subject: gnu: behave: Enable tests. * gnu/packages/check.scm (behave)[native-inputs]: Add python-mock, python-nose and python-pyhamcrest. [arguments]: Remove #:tests?. Add #:test-target. --- gnu/packages/check.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 76fb1dc3ff..50675cb854 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1549,12 +1549,16 @@ (define-public behave (base32 "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c")))) (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-nose" ,python-nose) + ("python-pyhamcrest" ,python-pyhamcrest))) (propagated-inputs `(("python-six" ,python-six) ("python-parse" ,python-parse) ("python-parse-type" ,python-parse-type))) - (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and - ;PyHamcrest>=1.8 + (arguments + '(#:test-target "behave_test")) (home-page "https://github.com/behave/behave") (synopsis "Python behavior-driven development") (description -- cgit v1.2.3