diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2017-05-22 11:12:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 11:12:36 +0200 |
commit | 0891d0b7a03ddcc02e8457f174c55f13ba07f281 (patch) | |
tree | db032f7e4c8b0e7108eb6bf7993eaf4b2e599b8e /pkgs/development | |
parent | 64a924a96b56a4028840a921be67150fc0544116 (diff) | |
parent | 4005d8a26d6043841aa0039d720db9e831b6f8f3 (diff) | |
download | nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.tar nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.tar.gz nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.tar.bz2 nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.tar.lz nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.tar.xz nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.tar.zst nixlib-0891d0b7a03ddcc02e8457f174c55f13ba07f281.zip |
Merge pull request #25716 from LnL7/python-flake8
python flake8: 3.2.1 -> 3.3.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/flake8/default.nix | 27 | ||||
-rw-r--r-- | pkgs/development/python-modules/mccabe/default.nix | 21 | ||||
-rw-r--r-- | pkgs/development/python-modules/pyflakes/default.nix | 23 |
3 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flake8/default.nix b/pkgs/development/python-modules/flake8/default.nix new file mode 100644 index 000000000000..aec715328f9b --- /dev/null +++ b/pkgs/development/python-modules/flake8/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/development/python-modules/mccabe/default.nix b/pkgs/development/python-modules/mccabe/default.nix new file mode 100644 index 000000000000..472bba26eb65 --- /dev/null +++ b/pkgs/development/python-modules/mccabe/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix new file mode 100644 index 000000000000..fbb0de6f0ced --- /dev/null +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -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 ]; + }; +} |