python3Packages.bleach: 3.3.1 -> 4.0.0
This commit is contained in:
parent
45d3c11c72
commit
6ea03e770a
@ -1,32 +1,43 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pytest-runner
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, html5lib
|
||||
, setuptools
|
||||
, packaging
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bleach";
|
||||
version = "3.3.1";
|
||||
version = "4.0.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1yma53plrlw2llaqxv8yk0g5al0vvlywwzym18b78m3rm6jq6r1h";
|
||||
sha256 = "sha256-/6kiHGrCk5nMUPzDNHM2bt0M+NXiy7u2MpbcMn+2fMg=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest pytest-runner ];
|
||||
propagatedBuildInputs = [ packaging six html5lib setuptools ];
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
six
|
||||
html5lib
|
||||
setuptools
|
||||
];
|
||||
|
||||
# Disable network tests
|
||||
checkPhase = ''
|
||||
pytest -k "not protocols"
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
disabledTests = [
|
||||
# Disable network tests
|
||||
"protocols"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "bleach" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An easy, HTML5, whitelisting HTML sanitizer";
|
||||
longDescription = ''
|
||||
Bleach is an HTML sanitizing library that escapes or strips markup and
|
||||
@ -41,7 +52,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
homepage = "https://github.com/mozilla/bleach";
|
||||
downloadPage = "https://github.com/mozilla/bleach/releases";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ prikhi ];
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ prikhi ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user