10 buildPythonPackage rec {
11 pname = "add-trailing-comma";
13 format = "setuptools";
15 disabled = pythonOlder "3.8";
17 src = fetchFromGitHub {
21 hash = "sha256-B+wjBy42RwabVz/6qEMGpB0JmwJ9hqSskwcNj4x/B/k=";
24 propagatedBuildInputs = [ tokenize-rt ];
26 pythonImportsCheck = [ "add_trailing_comma" ];
28 nativeCheckInputs = [ pytestCheckHook ];
31 description = "Tool (and pre-commit hook) to automatically add trailing commas to calls and literals";
32 mainProgram = "add-trailing-comma";
33 homepage = "https://github.com/asottile/add-trailing-comma";
34 license = licenses.mit;
35 maintainers = with maintainers; [ gador ];