mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
pythonPackages.html-sanitizer init at 1.9.1
This commit is contained in:
parent
35f530f9e8
commit
85c5636938
2 changed files with 23 additions and 0 deletions
21
pkgs/development/python-modules/html-sanitizer/default.nix
Normal file
21
pkgs/development/python-modules/html-sanitizer/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, lxml, beautifulsoup4, pytest, pytestrunner }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html-sanitizer";
|
||||
version = "1.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matthiask";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0nnv34924r0yn01rwlk749j5ijy7yxyj302s1i57yjrkqr3zlvas";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ lxml beautifulsoup4 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An allowlist-based and very opinionated HTML sanitizer that can be used both for untrusted and trusted sources.";
|
||||
homepage = "https://github.com/matthiask/html-sanitizer";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
|
@ -4153,6 +4153,8 @@ in {
|
|||
|
||||
htmllaundry = callPackage ../development/python-modules/htmllaundry { };
|
||||
|
||||
html-sanitizer = callPackage ../development/python-modules/html-sanitizer { };
|
||||
|
||||
html5lib = callPackage ../development/python-modules/html5lib { };
|
||||
|
||||
httmock = callPackage ../development/python-modules/httmock { };
|
||||
|
|
Loading…
Reference in a new issue