1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest,
6}:
7
8buildPythonPackage rec {
9 pname = "mccabe";
10 version = "0.7.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-NI4CQMM7YLvfTlIxku+RnyjLLD19XHeU90AJKQ8jYyU=";
16 };
17
18 buildInputs = [ pytest ];
19
20 # https://github.com/PyCQA/mccabe/issues/93
21 doCheck = false;
22
23 meta = with lib; {
24 description = "McCabe checker, plugin for flake8";
25 homepage = "https://github.com/flintwork/mccabe";
26 license = licenses.mit;
27 maintainers = [ ];
28 };
29}