Unverified Commit 134e0f90 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.add-trailing-comma: 3.1.0 -> 3.2.0 (#435387)

parents ce9979ec e666f637
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -4,34 +4,38 @@
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  tokenize-rt,
}:

buildPythonPackage rec {
  pname = "add-trailing-comma";
  version = "3.1.0";
  format = "setuptools";
  version = "3.2.0";
  pyproject = true;

  disabled = pythonOlder "3.8";
  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "asottile";
    repo = "add-trailing-comma";
    rev = "v${version}";
    hash = "sha256-B+wjBy42RwabVz/6qEMGpB0JmwJ9hqSskwcNj4x/B/k=";
    tag = "v${version}";
    hash = "sha256-b9EHlx149NUAo9UHDZLE3BwSJY5WpxsUYi1mqz7rnHA=";
  };

  propagatedBuildInputs = [ tokenize-rt ];
  build-system = [ setuptools ];

  pythonImportsCheck = [ "add_trailing_comma" ];
  dependencies = [ tokenize-rt ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "add_trailing_comma" ];

  meta = with lib; {
    description = "Tool (and pre-commit hook) to automatically add trailing commas to calls and literals";
    mainProgram = "add-trailing-comma";
    homepage = "https://github.com/asottile/add-trailing-comma";
    changelog = "https://github.com/asottile/add-trailing-comma/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ gador ];
    mainProgram = "add-trailing-comma";
  };
}