From 36fcbafdb08535c7b1ff63c9acd8a4196f28ab96 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 9 Aug 2020 00:14:28 +0300 Subject: [PATCH] gnu: Add go-github-com-microcosm-cc-bluemonday. * gnu/packages/golang.scm (go-github-com-microcosm-cc-bluemonday): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2bc768840b..6bc214380d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4787,3 +4787,29 @@ (define-public go-github-com-chris-ramon-douceur (synopsis "CSS parser and inliner") (description "This package provides a CSS parser and inliner.") (license license:expat))) + +(define-public go-github-com-microcosm-cc-bluemonday + (package + (name "go-github-com-microcosm-cc-bluemonday") + (version "1.0.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/microcosm-cc/bluemonday") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "071ph097c1iwbcc33x6kblj9rxb1r4mp3qfkrj4qw5mg7qcqxydk")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/microcosm-cc/bluemonday")) + (native-inputs + `(("go-github-com-chris-ramon-douceur" ,go-github-com-chris-ramon-douceur) + ("go-github-com-aymerick-douceur" ,go-github-com-aymerick-douceur) + ("go-github-com-gorilla-css" ,go-github-com-gorilla-css) + ("go-golang-org-x-net" ,go-golang-org-x-net))) + (home-page "https://github.com/microcosm-cc/bluemonday/") + (synopsis "HTML sanitizer") + (description "@code{bluemonday} is a HTML sanitizer implemented in Go.") + (license license:bsd-3)))