gnu: python2-tqdm: Work around missing flake8 propagation.

* gnu/packages/python.scm (python-tqdm)[properties]: Declare python2 variant.
(python2-tqdm): Use STRIP-PYTHON2-VARIANT.
[native-inputs]: Add PYTHON-ENUM34.
This commit is contained in:
Marius Bakke 2018-02-07 17:05:23 +01:00
parent b7049b2e23
commit 53f826cd0f
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 10 additions and 2 deletions

View File

@ -11929,10 +11929,18 @@ ignoring formatting changes.")
"Make loops show a progress bar on the console by just wrapping any "Make loops show a progress bar on the console by just wrapping any
iterable with @code{|tqdm(iterable)|}. Offers many options to define iterable with @code{|tqdm(iterable)|}. Offers many options to define
design and layout.") design and layout.")
(license (list license:mpl2.0 license:expat)))) (license (list license:mpl2.0 license:expat))
(properties `((python2-variant . ,(delay python2-tqdm))))))
(define-public python2-tqdm (define-public python2-tqdm
(package-with-python2 python-tqdm)) (let ((tqdm (package-with-python2
(strip-python2-variant python-tqdm))))
(package
(inherit tqdm)
(native-inputs
;; FIXME: This should be propagated from python2-flake8 instead.
`(("python2-enum34" ,python2-enum34)
,@(package-native-inputs tqdm))))))
(define-public python-pkginfo (define-public python-pkginfo
(package (package