at master 39 lines 732 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildDunePackage, 5 ocaml, 6 camlp-streams, 7 markup, 8 ounit2, 9}: 10 11buildDunePackage rec { 12 pname = "lambdasoup"; 13 version = "1.1.1"; 14 15 minimalOCamlVersion = "4.03"; 16 17 src = fetchFromGitHub { 18 owner = "aantron"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-+d1JPU7OyQgt8pDTlwZraqPHH+OBQD1ycsELKpHT95Y="; 22 }; 23 24 propagatedBuildInputs = [ 25 camlp-streams 26 markup 27 ]; 28 29 doCheck = lib.versionAtLeast ocaml.version "4.08"; 30 checkInputs = [ ounit2 ]; 31 32 meta = { 33 description = "Functional HTML scraping and rewriting with CSS in OCaml"; 34 homepage = "https://aantron.github.io/lambdasoup/"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.vbgl ]; 37 }; 38 39}