2020-08-11 12:33:59 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, alcotest, cryptokit, 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";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
2020-10-29 05:24:47 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-08-11 12:33:59 +00:00
|
|
|
minimumOCamlVersion = "4.05";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sporto";
|
|
|
|
repo = "jwto";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1p799zk8j9c0002xzi2x7ndj1bzqf14744ampcqndrjnsi7mq71s";
|
|
|
|
};
|
|
|
|
|
2021-01-31 13:15:46 +00:00
|
|
|
buildInputs = [ ppxlib ];
|
|
|
|
|
2020-08-11 12:33:59 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ cryptokit fmt yojson base64 re ppx_deriving ];
|
|
|
|
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|