mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #126813 from fabaff/fix-html-sanitizer
python3Packages.html-sanitizer: enable tests
This commit is contained in:
commit
701624a374
@ -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