python312Packages.icontract: relax deps (#380554)
[NixPkgs.git] / pkgs / by-name / al / allure / package.nix
blobe440d5f9173c04af4b66f05caf9c01c672dee751
2   lib,
3   stdenv,
4   makeWrapper,
5   fetchurl,
6   jre,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "allure";
11   version = "2.32.1";
13   src = fetchurl {
14     url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
15     hash = "sha256-EpTcdF1v6Os7FL/stqRR6OtZoPGuWp8qoC6U7NtBtaY=";
16   };
18   dontConfigure = true;
19   dontBuild = true;
21   nativeBuildInputs = [ makeWrapper ];
22   buildInputs = [ jre ];
24   installPhase = ''
25     runHook preInstall
27     mkdir -p $out/{bin,share}
28     cd "$out/share"
29     tar xvzf $src
30     makeWrapper $out/share/${finalAttrs.meta.mainProgram}-${finalAttrs.version}/bin/allure $out/bin/${finalAttrs.meta.mainProgram} \
31       --prefix PATH : "${jre}/bin"
33     runHook postInstall
34   '';
36   meta = {
37     homepage = "https://docs.qameta.io/allure/";
38     description = "Allure Report is a flexible, lightweight multi-language test reporting tool";
39     longDescription = ''
40       Allure Report is a flexible, lightweight multi-language test reporting
41       tool providing clear graphical reports and allowing everyone involved
42       in the development process to extract the maximum of information from
43       the everyday testing process.
44     '';
45     license = lib.licenses.asl20;
46     mainProgram = "allure";
47     maintainers = with lib.maintainers; [ happysalada ];
48   };