python3Packages.html-sanitizer: clean-up

This commit is contained in:
Fabian Affolter 2021-06-14 09:14:40 +02:00
parent 34c88a4d5c
commit df3964e84d

View file

@ -1,4 +1,10 @@
{ lib, buildPythonPackage, fetchFromGitHub, lxml, beautifulsoup4, pytest, pytestrunner }: { lib
, buildPythonPackage
, fetchFromGitHub
, lxml
, beautifulsoup4
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "html-sanitizer"; pname = "html-sanitizer";
@ -11,11 +17,23 @@ buildPythonPackage rec {
sha256 = "0nnv34924r0yn01rwlk749j5ijy7yxyj302s1i57yjrkqr3zlvas"; sha256 = "0nnv34924r0yn01rwlk749j5ijy7yxyj302s1i57yjrkqr3zlvas";
}; };
propagatedBuildInputs = [ lxml beautifulsoup4 ]; propagatedBuildInputs = [
lxml
beautifulsoup4
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "html_sanitizer/tests.py" ];
pythonImportsCheck = [ "html_sanitizer" ];
meta = with lib; { 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"; homepage = "https://github.com/matthiask/html-sanitizer";
license = licenses.bsd3; license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
}; };
} }