diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 09f93953a8c5..e1d658a0b5ba 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10547,7 +10547,7 @@ in modules // { }; buildInputs = with self; [ nose mock ]; - propagatedBuildInputs = with self; [ pyflakes pep8 mccabe ]; + propagatedBuildInputs = with self; [ pyflakes pep8 mccabe_0_4 ]; meta = { description = "Code checking using pep8 and pyflakes"; @@ -13498,6 +13498,24 @@ in modules // { }; }); + mccabe_0_4 = buildPythonPackage (rec { + name = "mccabe-0.4.0"; + + src = pkgs.fetchurl { + url = "mirror://pypi/m/mccabe/${name}.tar.gz"; + sha256 = "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"; + }; + + buildInputs = with self; [ pytestrunner pytest ]; + + meta = { + description = "McCabe checker, plugin for flake8"; + homepage = "https://github.com/flintwork/mccabe"; + license = licenses.mit; + maintainers = with maintainers; [ garbas ]; + }; + }); + mechanize = buildPythonPackage (rec { name = "mechanize-0.2.5";