567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
30 lines
546 B
Nix
30 lines
546 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mccabe";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NI4CQMM7YLvfTlIxku+RnyjLLD19XHeU90AJKQ8jYyU=";
|
|
};
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
# https://github.com/PyCQA/mccabe/issues/93
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "McCabe checker, plugin for flake8";
|
|
homepage = "https://github.com/flintwork/mccabe";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|