forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / te / textlint-rule-terminology / package.nix
blob4352569b5325442a57aa4fba04b4535f1cd4f661
2   lib,
3   fetchFromGitHub,
4   buildNpmPackage,
5   textlint,
6   textlint-rule-terminology,
7 }:
9 buildNpmPackage rec {
10   pname = "textlint-rule-terminology";
11   version = "5.0.0";
13   src = fetchFromGitHub {
14     owner = "sapegin";
15     repo = "textlint-rule-terminology";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-/NuKZSugizP4b2LFNqPrTvoXNE4D1sytU2B7T40ZASQ=";
18   };
20   npmDepsHash = "sha256-FQr7E6ZSJxj/ide+3JJwc27x15L1bAIAlPnMl8hdQ8w=";
22   dontNpmBuild = true;
24   passthru.tests = textlint.testPackages {
25     rule = textlint-rule-terminology;
26     testFile = ./test.md;
27   };
29   meta = {
30     description = "Textlint rule to check correct terms spelling";
31     homepage = "https://github.com/sapegin/textlint-rule-terminology";
32     changelog = "https://github.com/sapegin/textlint-rule-terminology/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
33     license = lib.licenses.mit;
34     maintainers = with lib.maintainers; [ natsukium ];
35   };