2022-12-21 06:44:03 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, digestif, fmt, yojson
|
2021-01-31 13:15:46 +00:00
|
|
|
, ppxlib
|
2020-08-11 12:33:59 +00:00
|
|
|
, base64, re, ppx_deriving }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "jwto";
|
2022-12-21 06:44:03 +00:00
|
|
|
version = "0.4.0";
|
2020-08-11 12:33:59 +00:00
|
|
|
|
2022-12-21 06:44:03 +00:00
|
|
|
duneVersion = "3";
|
2020-10-29 05:24:47 +00:00
|
|
|
|
2022-12-21 06:44:03 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-08-11 12:33:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sporto";
|
|
|
|
repo = "jwto";
|
|
|
|
rev = version;
|
2022-12-21 06:44:03 +00:00
|
|
|
hash = "sha256-TOWwNyrOqboCm8Y4mM6GgtmxGO3NmyDdAX7m8CifA7Y=";
|
2020-08-11 12:33:59 +00:00
|
|
|
};
|
|
|
|
|
2021-01-31 13:15:46 +00:00
|
|
|
buildInputs = [ ppxlib ];
|
|
|
|
|
2020-08-11 12:33:59 +00:00
|
|
|
propagatedBuildInputs =
|
2022-12-21 06:44:03 +00:00
|
|
|
[ digestif fmt yojson base64 re ppx_deriving ];
|
2020-08-11 12:33:59 +00:00
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-08-11 12:33:59 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/sporto/jwto";
|
|
|
|
description = "JSON Web Tokens (JWT) for OCaml";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
|
|
|
|
};
|
|
|
|
}
|