Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
910 B · 49 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, fetchFromGitHub, lxml, beautifulsoup4, pytestCheckHook}:
buildPythonPackage rec { pname = "html-sanitizer"; version = "1.9.3";
src = fetchFromGitHub { owner = "matthiask"; repo = pname; rev = version; hash = "sha256-1JSdi1PFM+N+UuEPfgWkOZw8S2PZ4ntadU0wnVJNnjw="; };
propagatedBuildInputs = [ lxml beautifulsoup4 ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "html_sanitizer/tests.py" ];
disabledTests = [ # Tests are sensitive to output "test_billion_laughs" "test_10_broken_html" ];
pythonImportsCheck = [ "html_sanitizer" ];
meta = with lib; { description = "Allowlist-based and very opinionated HTML sanitizer"; homepage = "https://github.com/matthiask/html-sanitizer"; license = with licenses; [ bsd3 ]; maintainers = with maintainers; [ fab ]; };}