pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / ocaml-modules / digestif / default.nix
blob9f859b182831a6edde412fa6ffff5cc47d1a5549
1 { lib, ocaml, fetchurl, buildDunePackage
2 , eqaf
3 , alcotest, astring, bos, crowbar, findlib, fpath
4 }:
6 buildDunePackage rec {
7   pname = "digestif";
8   version = "1.2.0";
10   minimalOCamlVersion = "4.08";
12   src = fetchurl {
13     url = "https://github.com/mirage/digestif/releases/download/v${version}/digestif-${version}.tbz";
14     hash = "sha256-wwFoyv4nmmZTZ4BrPl5jmP10dPHlJg52gm1eydOypQg=";
15   };
17   propagatedBuildInputs = [ eqaf ];
19   checkInputs = [ alcotest astring bos crowbar fpath ];
20   doCheck = true;
22   postCheck = ''
23     ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ test/test_runes.ml
24   '';
26   meta = {
27     description = "Simple hash algorithms in OCaml";
28     homepage = "https://github.com/mirage/digestif";
29     license = lib.licenses.mit;
30     maintainers = [ lib.maintainers.vbgl ];
31   };