opam-version: "2.0"
maintainer: "rudi.grinberg@gmail.com"
authors: ["Rudi Grinberg"]
license: "MIT"

homepage: "https://github.com/rgrinberg/opium"
bug-reports: "https://github.com/rgrinberg/opium/issues"
dev-repo: "git+https://github.com/rgrinberg/opium.git"
synopsis: "Sinatra like web toolkit based on Lwt + Cohttp"
description: """
Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage.
"""

build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name "-j" jobs] {with-test}
]

depends: [
  "ocaml" {>= "4.04.1"}
  "dune"
  "hmap"
  "cohttp" {>= "0.99.0"}
  "cohttp-lwt" {>= "0.99.0"}
  "ezjsonm" {>= "0.4.0" & < "1.2.0"}
  "base64" {>= "2.0.0" & < "3.0.0"}
  "lwt"
  "fieldslib" {>= "v0.9.0" & < "v0.15"}
  "sexplib" {>= "v0.9.0" & < "v0.15"}
  "ppx_fields_conv" {>= "v0.9.0" & < "v0.15"}
  "ppx_sexp_conv" {>= "v0.9.0" & < "v0.15"}
  "re" {>= "1.3.0"}
  "uri" {<"2.0.0"}
  "alcotest" {with-test}
  "cow" {with-test & >= "0.10.0"}
]
url {
  src:
    "https://github.com/rgrinberg/opium/releases/download/v0.17.0/opium-v0.17.0.tbz"
  checksum: "md5=c5b1d4e885f6b7d9a0c44d59f59242fc"
}
