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