summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2015-06-27 00:18:55 +0200
committerCyril Roelandt <tipecaml@gmail.com>2015-06-30 00:07:56 +0200
commite8df8f476e4a87b41278e2d358be612286fa6a6f (patch)
tree76e2735437cae3a51ba5e85f598198c8072543d9 /gnu
parenta59e017cb14ac4b30b46fbd7f2a76b29004d25f4 (diff)
gnu: Add python-flake8.
* gnu/packages/python.scm (python-flake8, python2-flake8): New variables.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm70
1 files changed, 70 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index fd3fedec271..c62184b5100 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3980,3 +3980,73 @@ complexity of Python source code.")
3980 3980
3981(define-public python2-mccabe 3981(define-public python2-mccabe
3982 (package-with-python2 python-mccabe)) 3982 (package-with-python2 python-mccabe))
3983
3984;; Flake8 2.4.1 requires an older version of pep8.
3985;; This should be removed ASAP.
3986(define-public python-pep8-1.5.7
3987 (package (inherit python-pep8)
3988 (version "1.5.7")
3989 (source
3990 (origin
3991 (method url-fetch)
3992 (uri (string-append
3993 "https://pypi.python.org/packages/source/p/pep8/pep8-"
3994 version
3995 ".tar.gz"))
3996 (sha256
3997 (base32
3998 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
3999
4000(define-public python2-pep8-1.5.7
4001 (package-with-python2 python-pep8-1.5.7))
4002
4003;; Flake8 2.4.1 requires an older version of pyflakes.
4004;; This should be removed ASAP.
4005(define-public python-pyflakes-0.8.1
4006 (package (inherit python-pyflakes)
4007 (version "0.8.1")
4008 (source
4009 (origin
4010 (method url-fetch)
4011 (uri (string-append
4012 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
4013 version
4014 ".tar.gz"))
4015 (sha256
4016 (base32
4017 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
4018
4019(define-public python2-pyflakes-0.8.1
4020 (package-with-python2 python-pyflakes))
4021
4022(define-public python-flake8
4023 (package
4024 (name "python-flake8")
4025 (version "2.4.1")
4026 (source
4027 (origin
4028 (method url-fetch)
4029 (uri (string-append
4030 "https://pypi.python.org/packages/source/f/flake8/flake8-"
4031 version
4032 ".tar.gz"))
4033 (sha256
4034 (base32
4035 "0dvmrpv7x98xkzffjz1z7lqr90sp5zdz16bdwckfd1cckpjvnzif"))))
4036 (build-system python-build-system)
4037 (inputs
4038 `(("python-setuptools" ,python-setuptools)
4039 ("python-pep8" ,python-pep8-1.5.7)
4040 ("python-pyflakes" ,python-pyflakes-0.8.1)
4041 ("python-mccabe" ,python-mccabe)
4042 ("python-mock" ,python-mock)
4043 ("python-nose" ,python-nose)))
4044 (home-page "https://gitlab.com/pycqa/flake8")
4045 (synopsis
4046 "The modular source code checker: pep8, pyflakes and co")
4047 (description
4048 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
4049 (license license:expat)))
4050
4051(define-public python2-flake8
4052 (package-with-python2 python-flake8))