diff --git a/pkgs/development/python-modules/html-sanitizer/default.nix b/pkgs/development/python-modules/html-sanitizer/default.nix index 17783f38d1f1..546f1acad094 100644 --- a/pkgs/development/python-modules/html-sanitizer/default.nix +++ b/pkgs/development/python-modules/html-sanitizer/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, lxml, beautifulsoup4, pytest, pytestrunner }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, lxml +, beautifulsoup4 +, pytestCheckHook +}: buildPythonPackage rec { pname = "html-sanitizer"; @@ -11,11 +17,23 @@ buildPythonPackage rec { sha256 = "0nnv34924r0yn01rwlk749j5ijy7yxyj302s1i57yjrkqr3zlvas"; }; - propagatedBuildInputs = [ lxml beautifulsoup4 ]; + propagatedBuildInputs = [ + lxml + beautifulsoup4 + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ "html_sanitizer/tests.py" ]; + + pythonImportsCheck = [ "html_sanitizer" ]; meta = with lib; { - description = "An allowlist-based and very opinionated HTML sanitizer that can be used both for untrusted and trusted sources."; + description = "Allowlist-based and very opinionated HTML sanitizer"; homepage = "https://github.com/matthiask/html-sanitizer"; - license = licenses.bsd3; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; }; }