1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 bleach,
6}:
7
8buildPythonPackage rec {
9 pname = "bleach-allowlist";
10 version = "1.0.3";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-VuIghgeaDmoxAK6Z5NuvIOslhUhlmOsOmUAIoRQo2ps=";
16 };
17
18 propagatedBuildInputs = [ bleach ];
19
20 # No tests
21 doCheck = false;
22
23 pythonImportsCheck = [ "bleach_allowlist" ];
24
25 meta = with lib; {
26 description = "Curated lists of tags and attributes for sanitizing html";
27 homepage = "https://github.com/yourcelf/bleach-allowlist";
28 license = licenses.bsd2;
29 maintainers = with maintainers; [ ambroisie ];
30 };
31}