Unverified Commit b314521e authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

proselint: 0.14.0 -> 0.16.0 (#498397)

parents aba8dc87 fe274712
Loading
Loading
Loading
Loading
+20 −8
Original line number Diff line number Diff line
@@ -7,24 +7,36 @@

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "proselint";
  version = "0.14.0";
  version = "0.16.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "amperser";
    repo = "proselint";
    tag = finalAttrs.version;
    hash = "sha256-bI5gkckXUa640GOb5U5NW4i2op4fn0LKoPHFSIwbheM=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Oj5WY+YcngcaVjDq2xcnTeyvO7HnAhKdNE+h4fFa6zA=";
  };

  build-system = [ python3Packages.poetry-core ];
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "uv_build>=0.7.22,<0.8.0" uv_build
  '';

  dependencies = [ python3Packages.click ];
  build-system = [ python3Packages.uv-build ];

  dependencies = with python3Packages; [ google-re2 ];

  # typing stubs are not needed at runtime
  pythonRemoveDeps = [ "google-re2-stubs" ];

  nativeCheckInputs = [
    python3Packages.pytestCheckHook
    writableTmpDirAsHomeHook
  ];
  ]
  ++ (with python3Packages; [
    hypothesis
    pytestCheckHook
    rstr
  ]);

  pythonImportsCheck = [ "proselint" ];

@@ -32,7 +44,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
    description = "Linter for prose";
    mainProgram = "proselint";
    homepage = "https://github.com/amperser/proselint";
    changelog = "https://github.com/amperser/proselint/releases/tag/${finalAttrs.version}/CHANGELOG.md";
    changelog = "https://github.com/amperser/proselint/releases/tag/v${finalAttrs.version}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.pbsds ];
  };