Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies lxml, lxml-html-clean, beautifulsoup4,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "html-sanitizer"; version = "2.6"; pyproject = true;
src = fetchFromGitHub { owner = "matthiask"; repo = "html-sanitizer"; tag = version; hash = "sha256-egBGhv7vudH32jwh9rAXuXfMzPDxJ60S5WKbc4kzCTU="; };
build-system = [ hatchling ];
dependencies = [ lxml lxml-html-clean beautifulsoup4 ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "html_sanitizer/tests.py" ];
disabledTests = [ # Tests are sensitive to output "test_billion_laughs" "test_10_broken_html" ];
pythonImportsCheck = [ "html_sanitizer" ];
meta = { description = "Allowlist-based and very opinionated HTML sanitizer"; homepage = "https://github.com/matthiask/html-sanitizer"; changelog = "https://github.com/matthiask/html-sanitizer/blob/${version}/CHANGELOG.rst"; license = with lib.licenses; [ bsd3 ]; maintainers = with lib.maintainers; [ fab ]; };}