* gnu/packages/python.scm (python-mccabe, python2-mccabe): New variables. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 12eabab..b35af55 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3953,3 +3953,28 @@ PEP 8.") (description "A simple program which checks Python source files for 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 "McCabe checker, plugin for flake8") + (license expat))) + +(define-public python2-mccabe + (package-with-python2 python-mccabe)) -- 1.8.4.rc3