diff options
| author | Leo Famulari <leo@famulari.name> | 2017-05-07 14:31:44 -0400 |
|---|---|---|
| committer | Leo Famulari <leo@famulari.name> | 2017-06-19 13:07:20 -0400 |
| commit | 731b0c727c017df20cead6f63b91d9b3f44febab (patch) | |
| tree | a82a10cb249f81698cc3b296f4ee942ad4e5a52b /gnu/packages/python.scm | |
| parent | 7e60206dff66339b540fb3a0e1e6d2b4eec4994f (diff) | |
gnu: Add python-mock-2.
* gnu/packages/python.scm (python-mock-2): New variable.
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c07bbae3e95..87c4d84a87c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -922,6 +922,24 @@ have been used.") | |||
| 922 | (define-public python2-mock | 922 | (define-public python2-mock |
| 923 | (package-with-python2 python-mock)) | 923 | (package-with-python2 python-mock)) |
| 924 | 924 | ||
| 925 | ;;; Some packages (notably, certbot and python-acme) rely on this newer version | ||
| 926 | ;;; of python-mock. However, a large number of packages fail to build with | ||
| 927 | ;;; mock@2, so we add a new variable for now. Also, there may be a dependency | ||
| 928 | ;;; cycle between mock and six, so we avoid creating python2-mock@2 for now. | ||
| 929 | (define-public python-mock-2 | ||
| 930 | (package | ||
| 931 | (inherit python-mock) | ||
| 932 | (version "2.0.0") | ||
| 933 | (source | ||
| 934 | (origin | ||
| 935 | (method url-fetch) | ||
| 936 | (uri (pypi-uri "mock" version)) | ||
| 937 | (sha256 | ||
| 938 | (base32 | ||
| 939 | "1flbpksir5sqrvq2z0dp8sl4bzbadg21sj4d42w3klpdfvgvcn5i")))) | ||
| 940 | (propagated-inputs | ||
| 941 | `(("python-pbr" ,python-pbr-minimal) | ||
| 942 | ,@(package-propagated-inputs python-mock))))) | ||
| 925 | 943 | ||
| 926 | (define-public python-setuptools | 944 | (define-public python-setuptools |
| 927 | (package | 945 | (package |
