Merge pull request #246145 from dotlambda/karma-runner-init

nodePackages.karma: use buildNpmPackage
This commit is contained in:
Robert Schütz 2023-08-05 01:01:13 +00:00 committed by GitHub
commit c990b0f084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 88 additions and 180 deletions

View File

@ -48,6 +48,7 @@ mapAliases {
eslint_d = pkgs.eslint_d; # Added 2023-05-26
flood = pkgs.flood; # Added 2023-07-25
gtop = pkgs.gtop; # added 2023-07-31
karma = pkgs.karma-runner; # added 2023-07-29
manta = pkgs.node-manta; # Added 2023-05-06
markdownlint-cli = pkgs.markdownlint-cli; # added 2023-07-29
readability-cli = pkgs.readability-cli; # Added 2023-06-12

View File

@ -196,7 +196,6 @@
, "jsonplaceholder"
, "kaput-cli"
, "katex"
, "karma"
, "keyoxide"
, "lcov-result-merger"
, "leetcode-cli"

View File

@ -116782,185 +116782,6 @@ in
bypassCache = true;
reconstructLock = true;
};
karma = nodeEnv.buildNodePackage {
name = "karma";
packageName = "karma";
version = "6.4.2";
src = fetchurl {
url = "https://registry.npmjs.org/karma/-/karma-6.4.2.tgz";
sha512 = "C6SU/53LB31BEgRg+omznBEMY4SjHU3ricV6zBcAe1EeILKkeScr+fZXtaI5WyDbkVowJxxAI6h73NcFPmXolQ==";
};
dependencies = [
sources."@colors/colors-1.5.0"
sources."@socket.io/component-emitter-3.1.0"
sources."@types/cookie-0.4.1"
sources."@types/cors-2.8.13"
sources."@types/node-20.4.5"
sources."accepts-1.3.8"
sources."ansi-regex-5.0.1"
sources."ansi-styles-4.3.0"
sources."anymatch-3.1.3"
sources."balanced-match-1.0.2"
sources."base64id-2.0.0"
sources."binary-extensions-2.2.0"
sources."body-parser-1.20.2"
sources."brace-expansion-1.1.11"
sources."braces-3.0.2"
sources."bufferutil-4.0.7"
sources."bytes-3.1.2"
sources."call-bind-1.0.2"
sources."chokidar-3.5.3"
sources."cliui-7.0.4"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."concat-map-0.0.1"
sources."connect-3.7.0"
sources."content-type-1.0.5"
sources."cookie-0.4.2"
sources."cors-2.8.5"
sources."custom-event-1.0.1"
sources."date-format-4.0.14"
sources."debug-2.6.9"
sources."depd-2.0.0"
sources."destroy-1.2.0"
sources."di-0.0.1"
sources."dom-serialize-2.2.1"
sources."ee-first-1.1.1"
sources."emoji-regex-8.0.0"
sources."encodeurl-1.0.2"
(sources."engine.io-6.5.1" // {
dependencies = [
sources."debug-4.3.4"
sources."ms-2.1.2"
];
})
sources."engine.io-parser-5.1.0"
sources."ent-2.2.0"
sources."escalade-3.1.1"
sources."escape-html-1.0.3"
sources."eventemitter3-4.0.7"
sources."extend-3.0.2"
sources."fill-range-7.0.1"
(sources."finalhandler-1.1.2" // {
dependencies = [
sources."on-finished-2.3.0"
sources."statuses-1.5.0"
];
})
sources."flatted-3.2.7"
sources."follow-redirects-1.15.2"
sources."fs-extra-8.1.0"
sources."fs.realpath-1.0.0"
sources."fsevents-2.3.2"
sources."function-bind-1.1.1"
sources."get-caller-file-2.0.5"
sources."get-intrinsic-1.2.1"
sources."glob-7.2.3"
sources."glob-parent-5.1.2"
sources."graceful-fs-4.2.11"
sources."has-1.0.3"
sources."has-proto-1.0.1"
sources."has-symbols-1.0.3"
sources."http-errors-2.0.0"
sources."http-proxy-1.18.1"
sources."iconv-lite-0.4.24"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
sources."is-binary-path-2.1.0"
sources."is-extglob-2.1.1"
sources."is-fullwidth-code-point-3.0.0"
sources."is-glob-4.0.3"
sources."is-number-7.0.0"
sources."isbinaryfile-4.0.10"
sources."jsonfile-4.0.0"
sources."lodash-4.17.21"
(sources."log4js-6.9.1" // {
dependencies = [
sources."debug-4.3.4"
sources."ms-2.1.2"
];
})
sources."media-typer-0.3.0"
sources."mime-2.6.0"
sources."mime-db-1.52.0"
sources."mime-types-2.1.35"
sources."minimatch-3.1.2"
sources."minimist-1.2.8"
sources."mkdirp-0.5.6"
sources."ms-2.0.0"
sources."negotiator-0.6.3"
sources."node-gyp-build-4.6.0"
sources."normalize-path-3.0.0"
sources."object-assign-4.1.1"
sources."object-inspect-1.12.3"
sources."on-finished-2.4.1"
sources."once-1.4.0"
sources."parseurl-1.3.3"
sources."path-is-absolute-1.0.1"
sources."picomatch-2.3.1"
sources."qjobs-1.2.0"
sources."qs-6.11.0"
sources."range-parser-1.2.1"
sources."raw-body-2.5.2"
sources."readdirp-3.6.0"
sources."require-directory-2.1.1"
sources."requires-port-1.0.0"
sources."rfdc-1.3.0"
sources."rimraf-3.0.2"
sources."safer-buffer-2.1.2"
sources."setprototypeof-1.2.0"
sources."side-channel-1.0.4"
(sources."socket.io-4.7.1" // {
dependencies = [
sources."debug-4.3.4"
sources."ms-2.1.2"
];
})
sources."socket.io-adapter-2.5.2"
(sources."socket.io-parser-4.2.4" // {
dependencies = [
sources."debug-4.3.4"
sources."ms-2.1.2"
];
})
sources."source-map-0.6.1"
sources."statuses-2.0.1"
(sources."streamroller-3.1.5" // {
dependencies = [
sources."debug-4.3.4"
sources."ms-2.1.2"
];
})
sources."string-width-4.2.3"
sources."strip-ansi-6.0.1"
sources."tmp-0.2.1"
sources."to-regex-range-5.0.1"
sources."toidentifier-1.0.1"
sources."type-is-1.6.18"
sources."ua-parser-js-0.7.35"
sources."universalify-0.1.2"
sources."unpipe-1.0.0"
sources."utf-8-validate-5.0.10"
sources."utils-merge-1.0.1"
sources."vary-1.1.2"
sources."void-elements-2.0.1"
sources."wrap-ansi-7.0.0"
sources."wrappy-1.0.2"
sources."ws-8.11.0"
sources."y18n-5.0.8"
sources."yargs-16.2.0"
sources."yargs-parser-20.2.9"
];
buildInputs = globalBuildInputs;
meta = {
description = "Spectacular Test Runner for JavaScript.";
homepage = "https://karma-runner.github.io/";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
keyoxide = nodeEnv.buildNodePackage {
name = "keyoxide";
packageName = "keyoxide";

View File

@ -0,0 +1,32 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "karma";
version = "6.4.2";
src = fetchFromGitHub {
owner = "karma-runner";
repo = "karma";
rev = "v${version}";
hash = "sha256-v6IiLz65NS8GwM/FPqRxR5qcFDDu7EqloR0SIensdDI=";
};
patches = [
./fix-package-lock.patch
];
npmDepsHash = "sha256-nX4/96WdPEDZ6DASp+AOBbBbHyq+p2zIh2dZUbtmIPI=";
env.PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = true;
meta = {
description = "Spectacular Test Runner for JavaScript";
homepage = "http://karma-runner.github.io/";
license = lib.licenses.mit;
mainProgram = "karma";
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -0,0 +1,53 @@
diff --git a/package-lock.json b/package-lock.json
index 413cf4d1..1d03d9f5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5226,36 +5226,6 @@
"integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==",
"dev": true
},
- "karma": {
- "version": "file:",
- "dev": true,
- "requires": {
- "@colors/colors": "1.5.0",
- "body-parser": "^1.19.0",
- "braces": "^3.0.2",
- "chokidar": "^3.5.1",
- "connect": "^3.7.0",
- "di": "^0.0.1",
- "dom-serialize": "^2.2.1",
- "glob": "^7.1.7",
- "graceful-fs": "^4.2.6",
- "http-proxy": "^1.18.1",
- "isbinaryfile": "^4.0.8",
- "lodash": "^4.17.21",
- "log4js": "^6.4.1",
- "mime": "^2.5.2",
- "minimatch": "^3.0.4",
- "mkdirp": "^0.5.5",
- "qjobs": "^1.2.0",
- "range-parser": "^1.2.1",
- "rimraf": "^3.0.2",
- "socket.io": "^4.4.1",
- "source-map": "^0.6.1",
- "tmp": "^0.2.1",
- "ua-parser-js": "^0.7.30",
- "yargs": "^16.1.1"
- }
- },
"karma-browserify": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/karma-browserify/-/karma-browserify-7.0.0.tgz",
diff --git a/package.json b/package.json
index 347d9e95..90f6d036 100644
--- a/package.json
+++ b/package.json
@@ -471,7 +471,6 @@
"eslint-plugin-standard": "^4.0.1",
"http2": "^3.3.6",
"jasmine-core": "^3.6.0",
- "karma": ".",
"karma-browserify": "^7.0.0",
"karma-browserstack-launcher": "^1.6.0",
"karma-chai": "^0.1.0",

View File

@ -18190,6 +18190,8 @@ with pkgs;
espup = callPackage ../development/tools/espup { };
karma-runner = callPackage ../development/tools/karma-runner { };
phpunit = callPackage ../development/tools/misc/phpunit { };
teller = callPackage ../development/tools/teller { };