2022-12-28 21:21:41 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, digestif, fmt, yojson
|
2021-02-05 17:12:51 +00:00
|
|
|
, ppxlib
|
2020-09-25 04:45:31 +00:00
|
|
|
, base64, re, ppx_deriving }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "jwto";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.4.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
duneVersion = "3";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sporto";
|
|
|
|
repo = "jwto";
|
|
|
|
rev = version;
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-TOWwNyrOqboCm8Y4mM6GgtmxGO3NmyDdAX7m8CifA7Y=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ ppxlib ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs =
|
2022-12-28 21:21:41 +00:00
|
|
|
[ digestif fmt yojson base64 re ppx_deriving ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-09-25 04:45:31 +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 ];
|
|
|
|
};
|
|
|
|
}
|