python3Packages.html-sanitizer: clean-up
This commit is contained in:
parent
34c88a4d5c
commit
df3964e84d
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user