textlint-rule-stop-words: repackage with buildNpmPackage

(cherry picked from commit c4db484f14)
This commit is contained in:
natsukium 2024-05-17 09:11:17 +09:00 committed by github-actions[bot]
parent 6f2cd96b3d
commit 9b0989a1a0
6 changed files with 40 additions and 31 deletions

View File

@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
buildNpmPackage,
textlint,
textlint-rule-stop-words,
}:
buildNpmPackage rec {
pname = "textlint-rule-stop-words";
version = "5.0.0";
src = fetchFromGitHub {
owner = "sapegin";
repo = "textlint-rule-stop-words";
rev = "refs/tags/v${version}";
hash = "sha256-e9jTbDULOs0DwtT9UZp7k5+RR5Ab/x/sizIvs1MrmZs=";
};
npmDepsHash = "sha256-t9PPHFIiY4vw0ocw6nMuaeYuYWxbc1Pzo0R6bqIsHeI=";
dontNpmBuild = true;
passthru.tests = textlint.testPackages {
rule = textlint-rule-stop-words;
testFile = ./test.md;
};
meta = {
description = "Textlint rule to find filler words, buzzwords and clichés";
homepage = "https://github.com/sapegin/textlint-rule-stop-words";
changelog = "https://github.com/sapegin/textlint-rule-stop-words/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}

View File

@ -0,0 +1 @@
and etc.

View File

@ -11,6 +11,7 @@
textlint-rule-diacritics,
textlint-rule-max-comma,
textlint-rule-preset-ja-technical-writing,
textlint-rule-stop-words,
textlint-rule-write-good,
}:
@ -102,6 +103,7 @@ buildNpmPackage rec {
textlint-rule-diacritics
textlint-rule-max-comma
textlint-rule-preset-ja-technical-writing
textlint-rule-stop-words
textlint-rule-write-good
]
);

View File

@ -140,6 +140,7 @@ mapAliases {
inherit (pkgs) textlint-rule-alex; # Added 2024-05-16
inherit (pkgs) textlint-rule-diacritics; # Added 2024-05-16
inherit (pkgs) textlint-rule-max-comma; # Added 2024-05-15
inherit (pkgs) textlint-rule-stop-words; # Added 2024-05-17
inherit (pkgs) textlint-rule-write-good; # Added 2024-05-16
thelounge = pkgs.thelounge; # Added 2023-05-22
three = throw "three was removed because it was no longer needed"; # Added 2023-09-08

View File

@ -227,7 +227,6 @@
, "textlint-rule-en-max-word-count"
, "textlint-rule-no-start-duplicated-conjunction"
, "textlint-rule-period-in-list-item"
, "textlint-rule-stop-words"
, "textlint-rule-terminology"
, "textlint-rule-unexpanded-acronym"
, "thelounge-plugin-closepms"

View File

@ -93358,36 +93358,6 @@ in
bypassCache = true;
reconstructLock = true;
};
textlint-rule-stop-words = nodeEnv.buildNodePackage {
name = "textlint-rule-stop-words";
packageName = "textlint-rule-stop-words";
version = "4.0.0";
src = fetchurl {
url = "https://registry.npmjs.org/textlint-rule-stop-words/-/textlint-rule-stop-words-4.0.0.tgz";
sha512 = "vP99cbTyapn+Hviom2doO3pJtjlhKlZvlHTf21zoB22CxJx2w3S7Ie169neB5U4Xsei+NodHf5tnwT933mO19A==";
};
dependencies = [
sources."@textlint/ast-node-types-13.4.1"
sources."@types/unist-2.0.10"
sources."boundary-2.0.0"
sources."lodash-4.17.21"
sources."split-lines-2.1.0"
sources."structured-source-4.0.0"
sources."textlint-rule-helper-2.3.1"
sources."unist-util-is-4.1.0"
sources."unist-util-visit-2.0.3"
sources."unist-util-visit-parents-3.1.1"
];
buildInputs = globalBuildInputs;
meta = {
description = "Textlint rule to find filler words, buzzwords and chiches";
homepage = "https://github.com/sapegin/textlint-rule-stop-words";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
textlint-rule-terminology = nodeEnv.buildNodePackage {
name = "textlint-rule-terminology";
packageName = "textlint-rule-terminology";