diff options
author | Cyril Roelandt <tipecaml@gmail.com> | 2015-06-27 00:30:07 +0200 |
---|---|---|
committer | Cyril Roelandt <tipecaml@gmail.com> | 2015-06-30 00:07:56 +0200 |
commit | a59e017cb14ac4b30b46fbd7f2a76b29004d25f4 (patch) | |
tree | 01efab047068559c27e8ced2118dd5257f857b47 /gnu/packages | |
parent | e31d7f44203595e6c1b14dfadc9064693f921bd0 (diff) | |
download | patches-a59e017cb14ac4b30b46fbd7f2a76b29004d25f4.tar patches-a59e017cb14ac4b30b46fbd7f2a76b29004d25f4.tar.gz |
gnu: Add python-mccabe.
* gnu/packages/python.scm (python-mccabe, python2-mccabe): New variables.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cf9d3cad54..fd3fedec27 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3953,3 +3953,30 @@ PEP 8.") (description "Pyflakes statically checks Python source code for common errors.") (license license:expat))) + +(define-public python-mccabe + (package + (name "python-mccabe") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/m/mccabe/mccabe-" + version + ".tar.gz")) + (sha256 + (base32 + "05ix3vdv5hjk4irl97n2n3c4g1vqvz7dbmkzs13f3bx97bxsczjz")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/flintwork/mccabe") + (synopsis "McCabe checker, plugin for flake8") + (description + "This package provides a Flake8 plug-in to compute the McCabe cyclomatic +complexity of Python source code.") + (license expat))) + +(define-public python2-mccabe + (package-with-python2 python-mccabe)) |