1{ lib, buildPythonPackage, fetchFromGitHub, lxml, beautifulsoup4, pytest, pytestrunner }:
2
3buildPythonPackage rec {
4 pname = "html-sanitizer";
5 version = "1.9.1";
6
7 src = fetchFromGitHub {
8 owner = "matthiask";
9 repo = pname;
10 rev = version;
11 sha256 = "0nnv34924r0yn01rwlk749j5ijy7yxyj302s1i57yjrkqr3zlvas";
12 };
13
14 propagatedBuildInputs = [ lxml beautifulsoup4 ];
15
16 meta = with lib; {
17 description = "An allowlist-based and very opinionated HTML sanitizer that can be used both for untrusted and trusted sources.";
18 homepage = "https://github.com/matthiask/html-sanitizer";
19 license = licenses.bsd3;
20 };
21}