ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / add-trailing-comma / default.nix
blobb6cfbb46d701b1a8231e026b7f2fb1b364f811b8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , tokenize-rt
7 }:
9 buildPythonPackage rec {
10   pname = "add-trailing-comma";
11   version = "2.3.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "asottile";
18     repo = pname;
19     rev = "v${version}";
20     sha256 = "sha256-NEXPIkPeH6ZAm1uzqc8iRWnlLbhKmvGQGGraLu989sw=";
21   };
23   propagatedBuildInputs = [
24     tokenize-rt
25   ];
27   pythonImportsCheck = [
28     "add_trailing_comma"
29   ];
31   checkInputs = [
32     pytestCheckHook
33   ];
35   meta = with lib; {
36     description = "A tool (and pre-commit hook) to automatically add trailing commas to calls and literals";
37     homepage = "https://github.com/asottile/add-trailing-comma";
38     license = licenses.mit;
39     maintainers = with maintainers; [ gador ];
40   };