From 8eae96d70c18f2a1015796e8aa0ff84463f4711c Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Oct 2016 11:26:14 +0200 Subject: [PATCH] mccabe_0_4: init at 0.4.0. Apparently, flake8 of the current default version needs older mccabe --- pkgs/top-level/python-packages.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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";