aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-02-17 21:45:31 +0100
committerMarius Bakke <mbakke@fastmail.com>2018-02-17 21:45:31 +0100
commit6f6db0269f76525e91201038b77798d666c8130b (patch)
treee25cc31d05169dfba2fadb2e6e713185acee4fc0 /gnu/packages/python.scm
parentca6197dd65771dbb2a88cfa48c4d6844bc51f069 (diff)
downloadgnu-guix-6f6db0269f76525e91201038b77798d666c8130b.tar
gnu-guix-6f6db0269f76525e91201038b77798d666c8130b.tar.gz
gnu: python-hacking: Update to 1.0.0.
* gnu/packages/openstack.scm (python-hacking): Update to 1.0.0. [propagated-inputs]: Change PYTHON-FLAKE8 to PYTHON-FLAKE8-2.5. * gnu/packages/python.scm (python-flake8-2.5, python2-flake8-2.5): New public variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 257489d09b..5bbe472da6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5468,6 +5468,32 @@ complexity of Python source code.")
("python2-enum" ,python2-enum)
,@(package-propagated-inputs base))))))
+;; python-hacking requires flake8 <2.6.0.
+(define-public python-flake8-2.5
+ (package
+ (inherit python-flake8)
+ (version "2.5.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "flake8" version))
+ (sha256
+ (base32
+ "1snylqwbmrylbx3r1wpz8ggk98f6bcag4441ag8mm2l7wyn58sij"))))
+ (propagated-inputs
+ `(("python-pep8" ,python-pep8)
+ ,@(package-propagated-inputs python-flake8)))
+ (properties `((python2-variant . ,(delay python2-flake8-2.5))))))
+
+(define-public python2-flake8-2.5
+ (package
+ (inherit python2-flake8)
+ (version (package-version python-flake8-2.5))
+ (source (origin
+ (inherit (package-source python-flake8-2.5))))
+ (propagated-inputs
+ `(("python2-pep8" ,python2-pep8)
+ ,@(package-propagated-inputs python2-flake8)))))
+
(define-public python-flake8-polyfill
(package
(name "python-flake8-polyfill")