Files
nixpkgs/pkgs/by-name/ka/karate/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
fetchurl,
jre,
makeWrapper,
}:
stdenvNoCC.mkDerivation rec {
pname = "karate";
version = "1.5.1";
src = fetchurl {
url = "https://github.com/karatelabs/karate/releases/download/v${version}/karate-${version}.jar";
sha256 = "sha256-Dk7rd9exdTSvauqcAldT3N597TeF+MNoLTx4OmOGcxE=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
makeWrapper ${jre}/bin/java $out/bin/karate --add-flags "-jar $src"
runHook postInstall
'';
meta = {
description = "API Test Automation Made Simple";
mainProgram = "karate";
longDescription = ''
Karate is the only open-source tool to combine API
test-automation, mocks, performance-testing and even UI
automation into a single, unified framework. The BDD syntax
popularized by Cucumber is language-neutral, and easy for even
non-programmers. Assertions and HTML reports are built-in, and
you can run tests in parallel for speed.
'';
homepage = "https://github.com/karatelabs/karate";
changelog = "https://github.com/karatelabs/karate/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.kephasp ];
platforms = jre.meta.platforms;
};
}