mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
python-flake8: 3.2.1 -> 3.3.0
This commit is contained in:
parent
af14949b08
commit
4005d8a26d
27
pkgs/development/python-modules/flake8/default.nix
Normal file
27
pkgs/development/python-modules/flake8/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -11081,27 +11081,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
flake8 = buildPythonPackage rec {
|
||||
name = "flake8-${version}";
|
||||
version = "3.2.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/f/flake8/${name}.tar.gz";
|
||||
sha256 = "c7c460b5aff3a2063c798a77af18ec70af3941d35a22e2e76965e3c0e0b36055";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ pytest mock pytestrunner ];
|
||||
propagatedBuildInputs = with self; [ pyflakes pycodestyle mccabe ]
|
||||
++ optionals (pythonOlder "3.4") [ enum34 ]
|
||||
++ optionals (pythonOlder "3.2") [ configparser ];
|
||||
|
||||
meta = {
|
||||
description = "Code checking using pep8 and pyflakes";
|
||||
homepage = http://pypi.python.org/pypi/flake8;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
};
|
||||
flake8 = callPackage ../development/python-modules/flake8 { };
|
||||
|
||||
flake8-blind-except = callPackage ../development/python-modules/flake8-blind-except { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user