mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
textlint-rule-stop-words: repackage with buildNpmPackage
(cherry picked from commit c4db484f14
)
This commit is contained in:
parent
6f2cd96b3d
commit
9b0989a1a0
36
pkgs/by-name/te/textlint-rule-stop-words/package.nix
Normal file
36
pkgs/by-name/te/textlint-rule-stop-words/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
1
pkgs/by-name/te/textlint-rule-stop-words/test.md
Normal file
1
pkgs/by-name/te/textlint-rule-stop-words/test.md
Normal file
@ -0,0 +1 @@
|
||||
and etc.
|
@ -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
|
||||
]
|
||||
);
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
30
pkgs/development/node-packages/node-packages.nix
generated
30
pkgs/development/node-packages/node-packages.nix
generated
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user