[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: Add python-mockito.
From: |
guix-commits |
Subject: |
03/07: gnu: Add python-mockito. |
Date: |
Fri, 15 Oct 2021 13:53:13 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 0930ca2c63fb57d9d7dba5bfb0f092ba3f09d961
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Oct 14 15:51:44 2021 -0400
gnu: Add python-mockito.
* gnu/packages/python-check.scm (python-mockito): New variable.
---
gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 8252f02..0421210 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1415,6 +1415,38 @@ the implementation of that name.")
(license (list license:asl2.0
license:lgpl3)))) ; only for setup_helpers.py
+(define-public python-mockito
+ (package
+ (name "python-mockito")
+ (version "1.2.2")
+ (source
+ (origin
+ (method git-fetch) ;no tests in pypi archive
+ (uri (git-reference
+ (url "https://github.com/kaste/mockito-python")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0fg8jflcf4c929gd4zbcrk73d08waaqjfjmdjrgnv54mzl35pjxl"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest")))))))
+ (native-inputs
+ `(("python-numpy" ,python-numpy)
+ ("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/kaste/mockito-python")
+ (synopsis "Mocking library for Python")
+ (description "This package provides a Python implementation of the Java
+library of the same name. It eases monkey patching, for example to stub out
+side effects when unit testing.")
+ (license license:expat)))
+
(define-public python-mypy-extensions
(package
(name "python-mypy-extensions")
- branch master updated (44469ff -> b87dbf2), guix-commits, 2021/10/15
- 02/07: gnu: python-robotframework-sshlibrary: Update to 3.7.0 and honor TESTS?., guix-commits, 2021/10/15
- 03/07: gnu: Add python-mockito.,
guix-commits <=
- 05/07: gnu: Add python-robotframework-pythonlibcore., guix-commits, 2021/10/15
- 01/07: gnu: python-robotframework: Update to 4.1.1 and honor TESTS?., guix-commits, 2021/10/15
- 04/07: gnu: Add python-pytest-mockito., guix-commits, 2021/10/15
- 06/07: gnu: Add python-robotframework-seleniumlibrary., guix-commits, 2021/10/15
- 07/07: gnu: Add python-robotframework-seleniumscreenshots., guix-commits, 2021/10/15