ocamlPackages.junit: init 2.0.2
ocamlPackages.junit_ounit: init 2.0.2 ocamlPackages.junit_alcotest: init 2.0.2
This commit is contained in:
parent
bf00839d04
commit
60f5a3c18d
14
pkgs/development/ocaml-modules/junit/alcotest.nix
Normal file
14
pkgs/development/ocaml-modules/junit/alcotest.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ buildDunePackage, junit, alcotest }:
|
||||
|
||||
buildDunePackage ({
|
||||
pname = "junit_alcotest";
|
||||
|
||||
inherit (junit) src version meta useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
junit
|
||||
alcotest
|
||||
];
|
||||
|
||||
doCheck = false; # 2 tests fail: 1) "Test with unexpected exception"; 2) "with wrong result";
|
||||
})
|
26
pkgs/development/ocaml-modules/junit/default.nix
Normal file
26
pkgs/development/ocaml-modules/junit/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, fetchurl, buildDunePackage, ptime, tyxml }:
|
||||
|
||||
buildDunePackage (rec {
|
||||
pname = "junit";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Khady/ocaml-junit/releases/download/${version}/junit-${version}.tbz";
|
||||
sha256 = "00bbx5j8vsy9fqbc04xa3lsalaxicirmbczr65bllfk1afv43agx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ptime
|
||||
tyxml
|
||||
];
|
||||
|
||||
useDune2 = true;
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "ocaml-junit is an OCaml package for the creation of JUnit XML reports, proving a typed API to produce valid reports acceptable to Jenkins, comes with packages supporting OUnit and Alcotest.";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ superherointj ];
|
||||
homepage = "https://github.com/Khady/ocaml-junit";
|
||||
};
|
||||
})
|
14
pkgs/development/ocaml-modules/junit/ounit.nix
Normal file
14
pkgs/development/ocaml-modules/junit/ounit.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ buildDunePackage, junit, ounit }:
|
||||
|
||||
buildDunePackage ({
|
||||
pname = "junit_ounit";
|
||||
|
||||
inherit (junit) src version meta useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
junit
|
||||
ounit
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
})
|
|
@ -543,6 +543,10 @@ let
|
|||
|
||||
jsonm = callPackage ../development/ocaml-modules/jsonm { };
|
||||
|
||||
junit = callPackage ../development/ocaml-modules/junit { };
|
||||
junit_ounit = callPackage ../development/ocaml-modules/junit/ounit.nix { };
|
||||
junit_alcotest = callPackage ../development/ocaml-modules/junit/alcotest.nix { };
|
||||
|
||||
jwto = callPackage ../development/ocaml-modules/jwto { };
|
||||
|
||||
kafka = callPackage ../development/ocaml-modules/kafka { };
|
||||
|
|
Loading…
Reference in a new issue