emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / add-trailing-comma / default.nix
blob08da1feadb118c2e27fb4d5ff342a4613129a4bf
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   tokenize-rt,
8 }:
10 buildPythonPackage rec {
11   pname = "add-trailing-comma";
12   version = "3.1.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "asottile";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-B+wjBy42RwabVz/6qEMGpB0JmwJ9hqSskwcNj4x/B/k=";
22   };
24   propagatedBuildInputs = [ tokenize-rt ];
26   pythonImportsCheck = [ "add_trailing_comma" ];
28   nativeCheckInputs = [ pytestCheckHook ];
30   meta = with lib; {
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 ];
36   };