13 buildPythonPackage rec {
19 inherit pname version;
20 hash = "sha256-Ej6JQRi4pZn9gNPsGm1Mx85OWIKxMXp+G6abVulfmR8=";
23 nativeBuildInputs = [ setuptools ];
25 propagatedBuildInputs = [
32 optional-dependencies = {
36 nativeCheckInputs = [ pytestCheckHook ];
39 # Disable network tests
43 pythonImportsCheck = [ "bleach" ];
46 description = "Easy, HTML5, whitelisting HTML sanitizer";
48 Bleach is an HTML sanitizing library that escapes or strips markup and
49 attributes based on a white list. Bleach can also linkify text safely,
50 applying filters that Django's urlize filter cannot, and optionally
51 setting rel attributes, even on links already in the text.
53 Bleach is intended for sanitizing text from untrusted sources. If you
54 find yourself jumping through hoops to allow your site administrators
55 to do lots of things, you're probably outside the use cases. Either
56 trust those users, or don't.
58 homepage = "https://github.com/mozilla/bleach";
59 downloadPage = "https://github.com/mozilla/bleach/releases";
60 changelog = "https://github.com/mozilla/bleach/blob/v${version}/CHANGES";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ prikhi ];