1{ stdenv, buildPythonPackage, fetchPypi, pytest, pytestrunner }: 2 3buildPythonPackage rec { 4 name = "${pname}-${version}"; 5 pname = "mccabe"; 6 version = "0.6.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"; 11 }; 12 13 buildInputs = [ pytest pytestrunner ]; 14 15 meta = with stdenv.lib; { 16 description = "McCabe checker, plugin for flake8"; 17 homepage = https://github.com/flintwork/mccabe; 18 license = licenses.mit; 19 maintainers = with maintainers; [ garbas ]; 20 }; 21}