13 buildPythonPackage rec {
14 pname = "html-sanitizer";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
22 repo = "html-sanitizer";
23 rev = "refs/tags/${version}";
24 hash = "sha256-6OWFLsuefeDzQ1uHnLmboKDgrbY/xJCwqsSQlDaJlRs=";
27 nativeBuildInputs = [ hatchling ];
29 propagatedBuildInputs = [
35 nativeCheckInputs = [ pytestCheckHook ];
37 pytestFlagsArray = [ "html_sanitizer/tests.py" ];
40 # Tests are sensitive to output
45 pythonImportsCheck = [ "html_sanitizer" ];
48 description = "Allowlist-based and very opinionated HTML sanitizer";
49 homepage = "https://github.com/matthiask/html-sanitizer";
50 changelog = "https://github.com/matthiask/html-sanitizer/blob/${version}/CHANGELOG.rst";
51 license = with licenses; [ bsd3 ];
52 maintainers = with maintainers; [ fab ];