diff options
| author | Ben Woodcroft <donttrustben@gmail.com> | 2016-04-03 15:55:44 +1000 |
|---|---|---|
| committer | Ben Woodcroft <donttrustben@gmail.com> | 2016-04-03 16:08:11 +1000 |
| commit | 1804527ab0ba107ee891f2c82e5346cb7044f8a3 (patch) | |
| tree | e7399592527458006727f438d5ad06b10437d3b3 /gnu | |
| parent | 1ef09c0c75c61fd70a84667a845a652995b38a94 (diff) | |
gnu: python-lockfile Use 'python2-variant'.
* gnu/packages/python.scm (python-lockfile): Use 'python2-variant'.
[properties]: New field.
(python2-lockfile): Use 'strip-python2-variant'.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d79cb135e6d..2f2ef2ffd9e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -728,10 +728,13 @@ concepts.") | |||
| 728 | (description | 728 | (description |
| 729 | "The lockfile package exports a LockFile class which provides a simple | 729 | "The lockfile package exports a LockFile class which provides a simple |
| 730 | API for locking files.") | 730 | API for locking files.") |
| 731 | (license license:expat))) | 731 | (license license:expat) |
| 732 | (properties `((python2-variant . ,(delay python2-lockfile)))))) | ||
| 732 | 733 | ||
| 733 | (define-public python2-lockfile | 734 | (define-public python2-lockfile |
| 734 | (package-with-python2 python-lockfile)) | 735 | (let ((base (package-with-python2 (strip-python2-variant python-lockfile)))) |
| 736 | (package | ||
| 737 | (inherit base)))) | ||
| 735 | 738 | ||
| 736 | (define-public python-mock | 739 | (define-public python-mock |
| 737 | (package | 740 | (package |
