1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 astring,
6 cmdliner,
7 fmt,
8 re,
9 stdlib-shims,
10 uutf,
11 ocaml-syntax-shims,
12}:
13
14buildDunePackage rec {
15 pname = "alcotest";
16 version = "1.9.0";
17
18 src = fetchurl {
19 url = "https://github.com/mirage/alcotest/releases/download/${version}/alcotest-${version}.tbz";
20 hash = "sha256-4jhxNsqFTfK0FSE53U1LOVOmRugElIBz3t/gojLwihU=";
21 };
22
23 nativeBuildInputs = [ ocaml-syntax-shims ];
24
25 propagatedBuildInputs = [
26 astring
27 cmdliner
28 fmt
29 re
30 stdlib-shims
31 uutf
32 ];
33
34 doCheck = true;
35
36 meta = with lib; {
37 homepage = "https://github.com/mirage/alcotest";
38 description = "Lightweight and colourful test framework";
39 license = licenses.isc;
40 maintainers = [ maintainers.ericbmerritt ];
41 };
42}