Merge pull request #126813 from fabaff/fix-html-sanitizer

python3Packages.html-sanitizer: enable tests
This commit is contained in:
Sandro 2021-06-14 13:52:07 +02:00 committed by GitHub
commit 701624a374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];
};
}