Merge pull request #25716 from LnL7/python-flake8

python flake8: 3.2.1 -> 3.3.0
This commit is contained in:
Frederik Rietdijk
2017-05-22 11:12:36 +02:00
committed by GitHub
4 changed files with 74 additions and 60 deletions

View File

@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, mock, pytest, pytestrunner
, configparser, enum34, mccabe, pycodestyle, pyflakes
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "flake8";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "04izn1q1lgbr408l9b3vkxqmpi6mq47bxwc0iwypb02mrxns41xr";
};
buildInputs = [ pytest mock pytestrunner ];
propagatedBuildInputs = [ pyflakes pycodestyle mccabe ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ]
++ stdenv.lib.optionals (pythonOlder "3.2") [ configparser ];
meta = with stdenv.lib; {
description = "Code checking using pep8 and pyflakes";
homepage = http://pypi.python.org/pypi/flake8;
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
};
}

View File

@@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, pytestrunner }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "mccabe";
version = "0.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx";
};
buildInputs = [ pytest pytestrunner ];
meta = with stdenv.lib; {
description = "McCabe checker, plugin for flake8";
homepage = "https://github.com/flintwork/mccabe";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
};
}

View File

@@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, unittest2 }:
buildPythonPackage rec {
pname = "pyflakes";
version = "1.5.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1x1pcca4a24k4pw8x1c77sgi58cg1wl2k38mp8a25k608pzls3da";
};
buildInputs = [ unittest2 ];
doCheck = !isPyPy;
meta = with stdenv.lib; {
homepage = https://launchpad.net/pyflakes;
description = "A simple program which checks Python source files for errors";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
};
}