12 buildPythonPackage rec {
17 inherit pname version;
18 sha256 = "sha256-mLMXBznl6D3Z3BljPwdHJ62EjL7bYCZwjIrC07aXpDM=";
21 checkInputs = [ pytest pytestrunner ];
22 propagatedBuildInputs = [ packaging six html5lib setuptools ];
24 # Disable network tests
26 pytest -k "not protocols"
30 description = "An easy, HTML5, whitelisting HTML sanitizer";
32 Bleach is an HTML sanitizing library that escapes or strips markup and
33 attributes based on a white list. Bleach can also linkify text safely,
34 applying filters that Django's urlize filter cannot, and optionally
35 setting rel attributes, even on links already in the text.
37 Bleach is intended for sanitizing text from untrusted sources. If you
38 find yourself jumping through hoops to allow your site administrators
39 to do lots of things, you're probably outside the use cases. Either
40 trust those users, or don't.
42 homepage = "https://github.com/mozilla/bleach";
43 downloadPage = "https://github.com/mozilla/bleach/releases";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ prikhi ];