cargonode: refactor

skip specific network-dependent tests during checks.
This commit is contained in:
xosnrdev
2024-12-08 10:32:46 -05:00
parent b7589ab8b9
commit 9fa93980e8
+8 -6
View File
@@ -4,7 +4,6 @@
fetchFromGitHub,
pkg-config,
bzip2,
git,
}:
rustPlatform.buildRustPackage rec {
@@ -20,16 +19,19 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-v+Fs2VJrpnIOk9nPRanYYChlR7WOfkXF1kbYOKjOUYc=";
doCheck = false;
checkFlags = [
# Skip test that requires network access
"--skip test_download_file"
"--skip test_extract_zip"
"--skip test_invalid_download_url"
"--skip test_create_package"
"--skip test_init_package"
];
nativeBuildInputs = [
pkg-config
];
nativeCheckInputs = [
git
];
meta = {
description = "Unified tooling for Node.js";
mainProgram = "cargonode";