python-mccabe: Fix build due to missing tests.

Regression introduced by 56a6f22d7f.

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 <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-04-12 06:50:34 +02:00
parent 7200556e5d
commit 54f58ee991
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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";