From 54f58ee991bfc19d61ebeac8a1e2344c1b97edbd Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 12 Apr 2015 06:50:34 +0200 Subject: [PATCH] python-mccabe: Fix build due to missing tests. Regression introduced by 56a6f22d7fb4690871669eba38a30e4f5a8cb483. I'm temporarily pulling in test_mccabe.py, as suggested by someone at flintwork/mccabe#31, which for now should fix the build (and the tests of course as well). Signed-off-by: aszlig --- pkgs/top-level/python-packages.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c7c3cdc2736..9f94fb67239 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6342,6 +6342,15 @@ let md5 = "81640948ff226f8c12b3277059489157"; }; + # See https://github.com/flintwork/mccabe/issues/31 + postPatch = '' + cp "${pkgs.fetchurl { + url = "https://raw.githubusercontent.com/flintwork/mccabe/" + + "e8aea16d28e92bd3c62601275762fc9c16808f6c/test_mccabe.py"; + sha256 = "0xhjxpnaxvbpi4myj9byrban7a5nrw931br9sgvfk42ayg4sn6lm"; + }}" test_mccabe.py + ''; + meta = { description = "McCabe checker, plugin for flake8"; homepage = "https://github.com/flintwork/mccabe";