diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d7802b611127..479f32523969 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6789,6 +6789,12 @@ githubId = 2029444; name = "James Kent"; }; + kephasp = { + email = "pierre@nothos.net"; + github = "kephas"; + githubId = 762421; + name = "Pierre Thierry"; + }; ketzacoatl = { email = "ketzacoatl@protonmail.com"; github = "ketzacoatl"; diff --git a/pkgs/development/tools/karate/default.nix b/pkgs/development/tools/karate/default.nix new file mode 100644 index 000000000000..2dd409674019 --- /dev/null +++ b/pkgs/development/tools/karate/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenvNoCC, fetchurl, jre, makeWrapper }: + +stdenvNoCC.mkDerivation rec { + pname = "karate"; + version = "1.2.0"; + + src = fetchurl { + url = "https://github.com/karatelabs/karate/releases/download/v${version}/karate-${version}.jar"; + sha256 = "69b9ba1cd9563cbad802471e7250dd46828df7ad176706577389dfe6e604e5ec"; + }; + dontUnpack = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + makeWrapper ${jre}/bin/java $out/bin/karate --add-flags "-jar $src" + runHook postInstall + ''; + + meta = with lib; { + description = "API Test Automation Made Simple"; + 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 = licenses.mit; + maintainers = [ maintainers.kephasp ]; + platforms = jre.meta.platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1677132b217d..a34b27492c00 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16278,6 +16278,8 @@ with pkgs; kamid = callPackage ../servers/ftp/kamid { }; + karate = callPackage ../development/tools/karate { }; + kati = callPackage ../development/tools/build-managers/kati { }; kcat = callPackage ../development/tools/kcat { };