nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 954 B view raw
1{ 2 lib, 3 buildDunePackage, 4 ppx_sexp_conv, 5 base, 6 async, 7 async_kernel, 8 async_unix, 9 cohttp, 10 conduit-async, 11 core_unix ? null, 12 uri, 13 uri-sexp, 14 logs, 15 fmt, 16 sexplib0, 17 ipaddr, 18 magic-mime, 19 ounit, 20 mirage-crypto, 21 core, 22 digestif, 23}: 24 25buildDunePackage { 26 pname = "cohttp-async"; 27 28 inherit (cohttp) 29 version 30 src 31 ; 32 33 minimalOCamlVersion = if lib.versionOlder cohttp.version "6.0.0" then "4.14" else "5.1"; 34 35 buildInputs = [ ppx_sexp_conv ]; 36 37 propagatedBuildInputs = [ 38 cohttp 39 conduit-async 40 async_kernel 41 async_unix 42 async 43 base 44 core_unix 45 magic-mime 46 logs 47 fmt 48 sexplib0 49 uri 50 uri-sexp 51 ipaddr 52 ]; 53 54 doCheck = true; 55 checkInputs = [ 56 ounit 57 core 58 digestif 59 ] 60 ++ lib.optionals (lib.versionOlder cohttp.version "6.0.0") [ 61 mirage-crypto 62 ]; 63 64 meta = cohttp.meta // { 65 description = "CoHTTP implementation for the Async concurrency library"; 66 }; 67}