From: Cyril Roelandt <tipecaml@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 4/4] gnu: Add python-flake8.
Date: Sat, 27 Jun 2015 00:58:58 +0200 [thread overview]
Message-ID: <1435359538-4149-5-git-send-email-tipecaml@gmail.com> (raw)
In-Reply-To: <1435359538-4149-1-git-send-email-tipecaml@gmail.com>
* gnu/packages/python.scm (python-flake8, python2-flake8): New variables.
---
gnu/packages/python.scm | 73 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b35af55..47989f9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3978,3 +3978,76 @@ PEP 8.")
(define-public python2-mccabe
(package-with-python2 python-mccabe))
+
+;; Flake8 2.4.1 requires an older version of pep8.
+;; This should be removed ASAP.
+(define-public python-pep8-1.5.7
+ (package (inherit python-pep8)
+ (version "1.5.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/p/pep8/pep8-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
+
+(define-public python2-pep8-1.5.7
+ (package-with-python2 python-pep8-1.5.7))
+
+;; Flake8 2.4.1 requires an older version of pyflakes.
+;; This should be removed ASAP.
+(define-public python-pyflakes-0.8.1
+ (package (inherit python-pyflakes)
+ (version "0.8.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
+
+(define-public python2-pyflakes-0.8.1
+ (package-with-python2 python-pyflakes))
+
+(define-public python-flake8
+ (package
+ (name "python-flake8")
+ (version "2.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/f/flake8/flake8-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0dvmrpv7x98xkzffjz1z7lqr90sp5zdz16bdwckfd1cckpjvnzif"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)
+ ("python-pep8" ,python-pep8-1.5.7)
+ ("python-pyflakes" ,python-pyflakes-0.8.1)
+ ("python-mccabe" ,python-mccabe)
+ ("python-mock" ,python-mock)
+ ("python-nose" ,python-nose)))
+ (home-page "https://gitlab.com/pycqa/flake8")
+ (synopsis
+ "The modular source code checker: pep8, pyflakes and co")
+ (description
+ "Flake8 is a wrapper around these tools:
+- PyFlakes;
+- pep8;
+- Ned Batchelder’s McCabe script.")
+ (license license:expat)))
+
+(define-public python2-flake8
+ (package-with-python2 python-flake8))
--
1.8.4.rc3
next prev parent reply other threads:[~2015-06-26 23:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 22:58 [PATCH 0/4] Add flake8 and its dependencies Cyril Roelandt
2015-06-26 22:58 ` [PATCH 1/4] gnu: Add python-pep8 Cyril Roelandt
2015-06-29 12:02 ` Ludovic Courtès
2015-06-26 22:58 ` [PATCH 2/4] gnu: Add python-pyflakes Cyril Roelandt
2015-06-29 12:03 ` Ludovic Courtès
2015-06-26 22:58 ` [PATCH 3/4] gnu: Add python-mccabe Cyril Roelandt
2015-06-29 12:04 ` Ludovic Courtès
2015-06-26 22:58 ` Cyril Roelandt [this message]
2015-06-29 12:07 ` [PATCH 4/4] gnu: Add python-flake8 Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435359538-4149-5-git-send-email-tipecaml@gmail.com \
--to=tipecaml@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).